Re: Curses and Threading

2008-02-03 Thread Brett . Friermood
> join() is a method on Thread objects. So you'll need a reference to the > Thread you create, then call join() on that. > > thread = cadtime() > thread.start() > thread.join() > > Ian Thanks for all the help guys. It's working great. Just one more question, I think. As you pro

Re: Curses and Threading

2008-01-22 Thread Brett . Friermood
> In fact you have *two* threads: the main thread, and the one you create > explicitly. > After you start the clock thread, the main thread continues executing, > immediately entering the finally clause. > If you want to wait for the other thread to finish, use the join() method. > But I'm unsure

Curses and Threading

2008-01-21 Thread Brett . Friermood
I am writing a program that uses curses and threading. I am working on displaying a clock in the upper right hand corner of the screen. I have only one thread at the moment, that gets the time and displays it in curses. To make it easier to debug right now, the program starts curses in a try: claus