Re: How to stop program when threads is sleeping

2006-12-26 Thread Carsten Haese
On 25 Dec 2006 21:50:15 -0800, many_years_after wrote > While , there is something wrong in my expression. What I mean is the > thread will wait some time after doing some tasks. I want to know is > there any method to end the thread or make it out of execution of > waiting. I use time.sleep() to l

Re: How to stop program when threads is sleeping

2006-12-26 Thread placid
many_years_after wrote: > Carsten Haese wrote: > > On Sun, 2006-12-24 at 22:55 -0800, many_years_after wrote: > > > Hi, pythoners: > > > > > > There is a problem I couldn't dispose. I start a thread in the my > > > program. The thread will do something before executing time.sleep(). > > > Wh

Re: How to stop program when threads is sleeping

2006-12-25 Thread many_years_after
Carsten Haese wrote: > On Sun, 2006-12-24 at 22:55 -0800, many_years_after wrote: > > Hi, pythoners: > > > > There is a problem I couldn't dispose. I start a thread in the my > > program. The thread will do something before executing time.sleep(). > > When the user give a signal to the main

Re: How to stop program when threads is sleeping

2006-12-25 Thread Carsten Haese
On Sun, 2006-12-24 at 22:55 -0800, many_years_after wrote: > Hi, pythoners: > > There is a problem I couldn't dispose. I start a thread in the my > program. The thread will do something before executing time.sleep(). > When the user give a signal to the main thread (such as click the 'end' >

Re: How to stop program when threads is sleeping

2006-12-25 Thread John Henry
many_years_after wrote: > Hi, pythoners: > > There is a problem I couldn't dispose. I start a thread in the my > program. The thread will do something before executing time.sleep(). > When the user give a signal to the main thread (such as click the 'end' > button or close the window), the t

How to stop program when threads is sleeping

2006-12-24 Thread many_years_after
Hi, pythoners: There is a problem I couldn't dispose. I start a thread in the my program. The thread will do something before executing time.sleep(). When the user give a signal to the main thread (such as click the 'end' button or close the window), the thread should end it's running. But h