|
From: | Michel Van den Bergh |
Subject: | Re: [XBoard-devel] gtk-branch |
Date: | Fri, 11 Nov 2011 19:22:26 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |