Threads and GUI
John Grayson
johngrayson at home.com
Thu Jun 15 06:25:09 EDT 2000
In article <3948A32A.25025A54 at t-online.de>,
Heinz Folker <folker at t-online.de> wrote:
> I want to create window like this:
>
> tk=Tkinter.Tk()
> widget=Test(tk)
> thread.start_new_thread(widget.mainloop(), ())
>
> I need a thread because I want to use the interpreter while the
mainloop
> is running. I want to interact with this window.
> But this code doesn't work.
>
> Thanks for help
>
If you search this newsgroup, you'll find numerous postings on
this topic.
The basic rule is: Leave the mainloop in the main thread then
thread off subordinate tasks. Also, wherever possible,
arrange for the main thread to update the gui.
>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list