canceling and joining threads
apardon at forel.vub.ac.be
Tue Dec 20 08:57:39 CET 2005
Op 2005-12-19, sir_alex schreef <chimaera29 at libero.it>:
> 1) no, i didn't; i'll go and read that function
gtk.gdk.threads_init, has to be called before gtk.main
if you want threads in a pygtk program.
> 2) well, the actual situation is: there's the main thread (the
> application itself) and then the second thread that i create with
> threading.Thread, in which i make some things; in this thread i call
> gtk.gdk to update a window with a progress bar...
You will have to put your gtk.gdk calls between gtk.gdk.threads_enter
and gtk.gdk.threads_leave calls to avoud blocking.
More information about the Python-list