Sleep timer but still responsive?

2010-01-28 Thread JohnnyFive
I need help with something that is probably fairly simple, but i'm having a heck of a time getting it work. Basically, I need my program to sleep for a certain amount of time, but I don't want the console to become unresponsive while sleeping. As soon as the time is up, I want the main program to

Re: Sleep timer but still responsive?

2010-01-29 Thread JohnnyFive
On Jan 28, 4:55 pm, "Gabriel Genellina" wrote: > Please provide more details. What do you want your program to do while   > sleeping? What kind of actions do you want a response to? > Do you have a GUI? A curses-based interfase? > > -- > Gabriel Genellina My app is purely console based. I just do

Re: Sleep timer but still responsive?

2010-01-29 Thread JohnnyFive
On Jan 29, 9:33 am, Andreas Tawn wrote: > > On Jan 28, 4:55 pm, "Gabriel Genellina" > > wrote: > > > Please provide more details. What do you want your program to do > > while > > > sleeping? What kind of actions do you want a response to? > > > Do you have a GUI? A curses-based interfase? > > >

Is there a way to see why a thread is still open?

2010-06-16 Thread JohnnyFive
I've got a rather complex program that, for some reason, is not closing the completed threads when they are finished. Just to cover my bases, when using the following: temp = threading.Thread(target=self.processMessages, args=(msg, args), name="pubmsg subthread") temp.setD