[Tutor] Need help with Tkinter Entry()
Matthews James
cooler12001@yahoo.com
Mon, 16 Apr 2001 02:07:37 -0700 (PDT)
This is what i have
#######################################################
from Tkinter import *
def do():
ENTRY = entry.get()
for times in range(0,13):
E = '%d X %d = %d' % (ENTRY,times,ENTRY*times)
label = Label(root,text=E)
label.pack()
root = Tk()
entry = Entry(root)
entry.pack()
button = Button(root,text='Times',command=do)
button.pack()
######################################################
I dont know how to get the entry to get the number or
text it always say that it needs a integer. but
when i call it in the python shell it says that it is
.274467 or something like that and this number is
always different when i run the program
James
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/