On 01/09/14 17:16, Michael O'Donnell wrote:
from  Tkinter import Tk, StringVar, Label
top =Tk()
v = StringVar()
Label(top, textvariable=v).pack()
v.set("hello")
top.mainloop()
Thanks for the pointer. The tutorial I was working through did not explain
where the StringVar() came from, and showed what I now understand as a
code snippet.

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to