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 <[EMAIL PROTECTED]> 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? _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
