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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.