Re: [Tkinter-discuss] simple script -Tkinter question.

2006-07-05 Thread jkuo
ok, guys, I think I've found the resolution.   originally, my env variable 'LANG' is set to 'zh_TW.UTF-8',   after I change it to 'LANG=en_US.UTF-8', then the script works as expected.   I'd like to know the real cause that make it happend, why the env 'LANG' make   script functions differe

Re: [Tkinter-discuss] simple script -Tkinter question.

2006-07-04 Thread mkieverpy
Michael Lange wrote: >Really? From Tkinter.py it looks to me like it should be equivalent: > >def mainloop(n=0): >"""Run the main loop of Tcl.""" >_default_root.tk.mainloop(n) > >(...snip...) I trusted the documentation :-(. So I thought this to be the cause of this strange behaviour. Otherwise I

Re: [Tkinter-discuss] simple script -Tkinter question.

2006-07-04 Thread Michael Lange
On Tue, 4 Jul 2006 09:48:44 +0200 [EMAIL PROTECTED] wrote: > 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 >

Re: [Tkinter-discuss] simple script -Tkinter question.

2006-07-04 Thread mkieverpy
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

[Tkinter-discuss] simple script -Tkinter question.

2006-07-03 Thread jkuo
Hi everyone, Here is my simple Tkinter script:   ## start of entry.pyfrom Tkinter import *root=Tk()e1=Entry(root, width=16)e1.pack()e2=Entry(root, width=16)e2.pack()mainloop()## end   First, it works on win2k. When I run it as 'python entry.py' on linux,both 'e1' and 'e2' appear perfectly exce