On 11/11/2011 07:16 PM, Michel Van den Bergh wrote:
I looked at more examples on the web and they all do
the drawing as response to an expose event. The expose
event is triggered using gtk_widget_queue_draw_area (or
the equivalent more intuitive window.invalidate_rect in PyGTK).
So I think this is really how it should be done.
At the risk of stating yet more obvious things: gtk allows for timed
execution using g_timeout_add() . This may be used
to create a timer which generates the expose events that
drive the animation.