Threading/TkInter problems with Buttons.
Fredrik Lundh
fredrik at pythonware.com
Fri Mar 15 13:36:55 EST 2002
Marc wrote:
> I was trying to start a thread from a button to find that it would not
> work. The problem was that every time I started the application, the
> thread would automatically kick off:
can you spot the the difference between those two
lines:
> self.Go["command"] = self.thread1.start()
> self.Go["command"] = self.go_thread
(in the first case, you're calling the function, and assign
the return value to the command option... in the second
case, you're doing the right thing)
</F>
<!-- (the eff-bot guide to) the python standard library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list