i'm trying to get user input from a Tkinter Entry field...

G. Willoughby thecalm at NOSPAM.btinternet.com
Tue Jul 3 19:52:15 EDT 2001


i'm trying to get user input from a Tkinter Entry field, this is the code i
am using:

[snip...]

def getNew():
    result1=str(newName.get())
    print result1

[snip...]

Button(frame1, text="Add New Entry", command=getNew).grid(row=0,column=0)
newName=Entry(frame1).grid(row=1,column=0)

[snip...]

it somehow doesn't work, any ideas?

P.S. no classes are used anywhere in this program.

G. Willoughby






More information about the Python-list mailing list