[pygtk] Threaded PYgtk apps and gtk.main_quit()
Jarek Zgoda
jzgoda at o2.pl
Sat Feb 24 07:25:27 WST 2007
Rob Brown-Bayliss napisał(a):
>> If you are targeting win32 I would suggest using
>> "gobject.idle_add(...)" instead if you want to update GTK UI from sub
>> threads.
>> See these FAQ entries for more info:
>
> The thread does not update the gui, it sits in the background waking
> up from t ime to time to process some data... The main app watches
> the file on disk for changes (via pyinotify) and then updates the UI
Anyway, many times I saw this as a recommended resolution to "update GUI
from thread" problem. If your thread does not need to update UI, then it
has nothing to to with PyGTK. ;)
--
Jarek Zgoda
http://jpa.berlios.de/
More information about the pygtk
mailing list