注意:轉寄信件已夾帶

___________________________________________________
最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打!
http://messenger.yahoo.com.tw/

--- Begin Message ---
Hello mkieverpy!
 
I've also tried to call 'root.mainloop()', but it appeared the same.
 
I've once suspected that it might be the os, x window issue..., but as
 
I mentioned: it works by running the script line by line in python interactive shell,
 
It just doesn't work no matter I run it as 'python entry.py' or copy and paste into
 
python's interactive shell, very weired.
 
BR.
[EMAIL PROTECTED] 說:
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

_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

___________________________________________________
最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打!
http://messenger.yahoo.com.tw/
--- End Message ---

_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to