On Thu, Mar 12, 2009 at 7:18 PM, DR0ID <[email protected]> wrote: > Hi > > I have been trying to write a modal win lately. Any idea how it could be > done better? Should a ModalWindow class have a show_modal(...) method? > Or maybe some events shouldn't be forwarded... not sure. It should work > on any platform since it doesn't use any platform specific code. Let me > know if you have any trouble on a certain platform. > > The example opens a window, press 'M' for another modal window or press > 'R' for a window that redirects its events to a single function. You can > open hierarchical modal windows. > > Any feedback appreciated. > > ~DR0ID >
To my mind, modality is a state of the event dispatch system, rather than an attribute of a window. This doesn't precisely translate into pyglet's framework, but it is something worth keeping in mind while you are designing. -- Tristam MacDonald http://swiftcoder.wordpress.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
