[pygtk] gtk main loop alternatives
François Ingelrest
athropos at gmail.com
Sun Oct 28 19:29:53 WST 2007
The GTK mainloop has to deal with user's events, so you can't use it
for that kind of stuff since you would block the events' handler. If
you have to do background work like this one, you need some kind of
multithreading.
See http://faq.pygtk.org (Sec. 20)
On 10/28/07, Donn <donn.ingle at gmail.com> wrote:
> Hi,
> I want to try and draw a series of cairo shapes in a loop that does other
> stuff like:
>
> while True:
> canvas.draw()
> updateStuff()
> checkStuff()
>
> How do I fit this concept together with the gtk.main() that seems to stop
> there? Am I looking at some kind of timeout() command?
More information about the pygtk
mailing list