[Tkinter-discuss] Problem using StringVar()

Chris Roy-Smith chris_roysmith at internode.on.net
Mon Sep 1 09:47:54 CEST 2014

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.

More information about the Tkinter-discuss mailing list