On Nov 27, 2007 2:21 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

>
> When running any of the Pyglet examples from within IDLE, the app
> seems to hang upon hitting the X/close button in the top right corner.
> The examples run fine as stand-alone scripts (double-click in Explorer
> to launch, close fine with X button). Can anyone else verify this? Any
> thoughts about what the problem might be?
>

Verified.  Actually, the application has not hung, it's finished, but the
window is still hanging around because the process hasn't exited (IDLE runs
programs within the same process as the shell window).  One workaround is to
explicitly close the window when the program exits:

w = window.Window()
while not w.has_exit:
    w.dispatch_events()
    w.clear()
    w.flip()
w.close()

Otherwise, if you close the IDLE shell window the pyglet window(s) will also
be closed, after a few moments.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to