thread already started...

sarmin kho sarmin_kho at yahoo.com
Sat Feb 21 04:45:21 EST 2004


Hi Pythoners...
 
I am building a python GUI with wxpython... the python GUI will periodically call a python module written on python 2.2... wxtimer is used to enable the periodic call...  it works fine when i first run the wxtimer to periodically call the python module... the problem arises when i stop the wxtimer and restart the wxtimer (restart calling periodically)... 
 
It says : "thread already started"... the python module i called is written by other programmer and threads must have been started somewhere in the python module... if i exit from the python GUI, all threads will be stopped... 
 
i suppose the quick solution is to stop all threads when the wxtimer is stopped... 
 
ANY IDEA ON HOW TO STOP ALL THREADS INDEFINITELY WITHOUT CLOSING THE GUI??... python command 'sys.exit()' will exit from my main running code (the python GUI)...
 
Many thanks to Pythoners... I have just been introduced to python few months ago and i have now fallen in love with it...
 
regards
sarmin


---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040221/c4845779/attachment.html>


More information about the Python-list mailing list