On Tue, 2004-10-12 at 14:16, Martijn Brouwer wrote:
> Hi,
> I would like to have my pygtk program call a function once every xx
> seconds. My purpose is to update some information, say, every 30
> seconds. In an plain python program I would call sleep(xx) between the
> function calls. Since I am new to programming in event driven
> interfaces, I do not know to do this in a gtk interface.
> I guess, the gtk.mainloop has to take care for calling my function. How
> do I achieve this.

See gtk.timeout_add().

HTH,
-Jonathan Brandmeyer

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to