"Wayne Watson" <[email protected]> wrote
Here's what I think the author meant in discussing a control variable
sample
program. <http://effbot.org/tkinterbook/entry.htm>
========================
from Tkinter import *
v=StringVar()
e = Entry(master, textvariable=v)
AG >> No master defined... you need
AG >> master = Tk()
e.pack()
e.focus_set()
v.set("a default value")
s = v.get()
mainloop()
AG>> and this should be master.mainloop()
Alan G
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor