I had a similar problem on Windows. When I clicked the "X" to close
the window, the window would not close and I would have to do a CTRL
+ALT+DEL to stop the pyglet process.

What you need to do is you need to use a slightly modified run loop
that I came up with. It worked for me on Windows and I'm pretty sure
it will work for you on Mac.

Here's the code:

while not win.has_exit:
    win.dispatch_events()
    win.clear()
    ... (whatever other method calls you want)
    win.flip()
else:
    win.close()

Add the else part right after the while loop. This should fix the
problem for you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to