On 2/18/2010 2:16 AM, Jimjamjahaa wrote:
hi i am having some troubles with scheduled_interval. as far as i can
tell, the default event loop should redraw the scene after a
scheduled_interval triggers. however this is not the case in my
program; the scene only gets redrawn when the window is resized.

I think that happens because that's the only time the window receives an draw-triggering event. Your schedule_interval in TableArea only rotates the rectangle; otherwise there are no explicit draw triggers in the event loop. You either need to define an on_draw in a @window.event or trigger a draw explicitly in your update() or through some user interaction. See the Hello, World of Writing a pyglet Application and The pyglet event framework in the docs.


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