On Fri, 7 Dec 2007, brian.grogan.jr wrote:
> 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.

Why in an else clause? The win.close() wouldn't be executed if you 
used "break" to terminate the while loop, and I can't think of a reason to do 
that.


    Richard




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