Snor wrote: > Using Win32 and latest pyglet revision here, I assumed that handling > on_close myself for a window object meant that I could decide if the > window actually closed or not - but this doesn't seem to be the case. > In fact, no matter what I try there seems to be no way to make the > window not close when the [x] is clicked. I've been fiddling with the > WindowExitHandler and other code and came up with nothing - is this > supposed to be how it behaves or am I missing something? > The default on_close() handler sets `has_exit` to True on the window. In all the examples given, the main runloop checks for this flag to determine when to exit. In your on_close() handler, return True to shortcut the default handler (alternatively, ignore the has_exit flag).
Alex. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
