Automatic naming?
athos84 at my-deja.com
athos84 at my-deja.com
Mon Jul 31 11:34:26 EDT 2000
I am trying to create a window in Tkinter that has
a variable number of entry fields, depending on
the length of a list. The script looks like this:
cnt = 0
for x in list:
label = Label(window, text=x)
entry = Entry(window)
label.grid(row=cnt)
entry.grid(row=cnt, column=1)
cnt = cnt+1
The window looks fine, but my problem is that I
don't know how to use .get() commands to call back
the contents of the widget. Is there a way to
automatically name each entry as it gets created
so that I can call them back when I need to?
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list