Re: canceling and joining threads

2005-12-20 Thread Antoon Pardon
Op 2005-12-19, sir_alex schreef <[EMAIL PROTECTED]>: > 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

Re: canceling and joining threads

2005-12-19 Thread sir_alex
1) no, i didn't; i'll go and read that function 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... 3)

Re: canceling and joining threads

2005-12-19 Thread Antoon Pardon
Op 2005-12-19, sir_alex schreef <[EMAIL PROTECTED]>: > Hello everybody! I have a couple of questions about threads: the first > is, is there the possibility to cancel a thread while it is executing > (like the C function thread_cancel), You can have one thread raise an exception in an other thread

Re: canceling and joining threads

2005-12-19 Thread Ove Svensson
"sir_alex" <[EMAIL PROTECTED]> writes: > Hello everybody! I have a couple of questions about threads: the first > is, is there the possibility to cancel a thread while it is executing > (like the C function thread_cancel), for implementing something like an > "abort" button? As far as I know, py

canceling and joining threads

2005-12-19 Thread sir_alex
Hello everybody! I have a couple of questions about threads: the first is, is there the possibility to cancel a thread while it is executing (like the C function thread_cancel), for implementing something like an "abort" button? And the second is, i have a GUI in which there's a button that launche