managing multiple windows

128 views
Skip to first unread message

greenmoss

unread,
Jan 27, 2012, 1:51:36 PM1/27/12
to pyglet-users
All,

If I create two or more pyglet.window.Window instances, how can I
control which window is currently "active" (eg, at the top of the
stack, unobscured by the other window(s))?

Or perhaps I'm "doing it wrong"? I *could* display within one single
fullscreen window, but if I did this I would still need to have window-
like regions inside my fullscreen window. If I went this route, is
there already code available for me to reuse, or would I have to do it
all from scratch?

Nathan

unread,
May 23, 2012, 11:45:24 PM5/23/12
to pyglet...@googlegroups.com
Wow, no answer in 4 months. :-/ I would presume that the window
object's activate() method is probably what you're looking for.

http://pyglet.org/doc/api/pyglet.window.Window-class.html#activate

~ Nathan

greenmoss

unread,
Jun 23, 2012, 7:24:43 PM6/23/12
to pyglet...@googlegroups.com
I did actually end up trying activate(), but it didn't do anything for me at the time. So I moved to managing my "states" in one window instead of using multiple windows.
Reply all
Reply to author
Forward
0 new messages