Re: Problem using StringVar()
Chris Roy-Smith <[email protected]>
| Newsgroups | gmane.comp.python.tkinter |
|---|---|
| Message-ID | <[email protected]> |
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.