Hi,
I want to know to how to stop a Running Thread...Kindly give some example....For single thread and Multi thread
Regards
Bala
Hi,
I want to know to how to stop a Running Thread...Kindly give some example....For single thread and Multi thread
Regards
Bala
Message
Hello,
As far as I know it’s not possible in python, they exit after they did their job. You can try to set a global flag if you’re in a loop though. See this page in the wiki: http://wiki.wxpython.org/index.cgi/LongRunningTasks
M. Vernier
-----Original Message-----
From: bala [mailto:blk@srasys.co.in]
Sent: Monday, May 03, 2004 1:50 PM
To: wxPython-users@lists.wxwidgets.org
Subject:
[wxPython-users] how to stop a Running Thread
Hi,
I want to know to how to stop a Running Thread...Kindly give some example....For single thread and Multi thread
Regards
Bala
Maybe instead of threads you can use a wxProcess.
Probably these are killable.
Stani
--- "M. Vernier" <vernie_m@epita.fr> wrote:
Hello,
As far as I know it's not possible in python, they
exit after they did their
job. You can try to set a global flag if you're in a
loop though. See this
page in the wiki:
http://wiki.wxpython.org/index.cgi/LongRunningTasksM. Vernier
-----Original Message-----
From: bala [mailto:blk@srasys.co.in]
Sent: Monday, May 03, 2004 1:50 PM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] how to stop a Running
ThreadHi,
I want to know to how to stop a Running
Thread...Kindly give some
example....For single thread and Multi threadRegards
Bala
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
bala wrote:
I want to know to how to stop a Running Thread...
You can't in Python. The thread has to choose to stop
itself. You can set a variable to tell it to stop,
or you can set it as a deamon thread (see the doc).
Roger
a daemon thread keeps working after the app has exited right?!
-----Original Message-----
From: Roger Binns [mailto:rogerb@rogerbinns.com]
Sent: Monday, May 03, 2004 8:08 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] how to stop a Running Thread
bala wrote:
I want to know to how to stop a Running Thread...
You can't in Python. The thread has to choose to stop
itself. You can set a variable to tell it to stop,
or you can set it as a deamon thread (see the doc).
Roger
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
A daemon thread will exit when it's finished its program steps. Also if there are only daemon threads running in the program then the program will exit killing all threads.
Nigel
On Tue, 4 May 2004 06:45:02 +0200 "M. Vernier" <vernie_m@epita.fr> wrote:
a daemon thread keeps working after the app has exited right?!
-----Original Message-----
From: Roger Binns [mailto:rogerb@rogerbinns.com]
Sent: Monday, May 03, 2004 8:08 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] how to stop a Running Threadbala wrote:
> I want to know to how to stop a Running Thread...You can't in Python. The thread has to choose to stop
itself. You can set a variable to tell it to stop,
or you can set it as a deamon thread (see the doc).Roger
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
Nigel W. Moriarty
Building 4R0230, Physical Biosciences Division
Lawrence Berkeley National Laboratory
Berkeley, CA 94720-8235
Phone : 510-486-5709
Fax : 510-486-5909
Email : NWMoriarty@LBL.gov
Web : CCI.LBL.gov