josch wrote:
> this code should execute loader1 and loader2, right? well, it doesn't.
> why?
>
> #!/usr/bin/python
> import pyglet
>
> window = pyglet.window.Window(256, 256)
>
> @window.event
> def on_draw():
>     window.clear()
>
> def loader2(dt):
>     print "loader2"
>
> def loader1(dt):
>     print "loader1"
>     pyglet.clock.schedule_once(loader2, 0.0)
>   


Try a non-zero value in that schedule_once call for loader2.  (I used 
0.0001)  Not sure *why* that works, but it does (for me on Linux).

Gary Herron



> pyglet.clock.schedule_once(loader1, 0.0)
> pyglet.app.run()
> >
>   


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