threads module question
Thomas Wouters
thomas at xs4all.net
Wed Aug 23 12:09:05 EDT 2000
On Wed, Aug 23, 2000 at 08:14:56AM -0700, Daley, Mark W wrote:
> My apologies about the script, I was giving bits and pieces in an attempt to
> give the general idea without bogging down in details. At any rate, when I
> change
> thread.start_new_thread(main.showvalues(), <What goes here?>)
> to
> thread.start_new_thread(main.showvalues)
> File "C:\Python\gui.py", line 47, in interact
> thread.start_new_thread(main.showvalues)
> TypeError: function requires at least 2 arguments; 1 given
That's my fault, sorry. If you want to pass no arguments, you have to give a
single argument to start_new_thread: an empty tuple. So if you change your
call to
thread.start_new_thread(main.showvalues, ())
it should *really* work :-) Sorry for the confusion.
--
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list
mailing list