[pygtk] A timer to refresh my app controls?
Kelvin Ho
kelvin.ho.ka.wai at gmail.com
Sat Jun 6 16:56:12 WST 2009
Hi,
If your GUI needs to do some task periodically, you can use
gobject.timeout_add to attach a callback. Here's the reference:
http://pygtk.org/docs/pygobject/gobject-functions.html#function-gobject--timeout-add
Hope that helps.
Kelvin
2009/6/6 Alexandre González <alex at rianxosencabos.com>
> Hi!
>
> I like to know the best way to refresh my buttons... I go to explain. I'm
> developing a frontend, so I depend that the backend change some values, so
> after a little time I need to read some propertys from the backend and setup
> my frontend button. What's the best way to do it and don't use a lot of CPU.
>
> Thank you!
>
> --
> Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt
> and/or .pptx
> http://mirblu.com
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090606/e149c247/attachment.htm
More information about the pygtk
mailing list