[Tkinter-discuss] simple script -Tkinter question.

mkieverpy at tlink.de mkieverpy at tlink.de
Tue Jul 4 09:48:44 CEST 2006


Hi jkuo!

>Hi everyone,
>Here is my simple Tkinter script:

>## start of entry.py
>from Tkinter import *
>root=Tk()
>e1=Entry(root, width=16)
>e1.pack()
>e2=Entry(root, width=16)
>e2.pack()
>mainloop()
>## end

You should call 'root.mainloop()'!
Just mainloop() is the mainloop of Tcl, not Tk.
I don't know what the effects of this might be.
On Linux everything seems to work, nonetheless.

Hope this helps,

Matthias Kievernagel
mkiever/at/web/dot/de
software development



More information about the Tkinter-discuss mailing list