A Tkinter StringVar() Question
- by Graham
I would like to create a StringVar() that looks something like this:
someText = "The Spanish Inquisition" #Here's a normal variable whose value I will change
eventually
TkEquivalent = StringVar() #and here's the StringVar()
TkEquivalent.set(string(someText)) #and here I set it equal to the normal variable. When
someText changes, this variable will too...
HOWEVER:
TkEquivalent.set("Nobody Expects " + string(someText))
If I do this, the StringVar() will no longer automatically update! How can I include that static text and still have the StringVar() update to reflect changes made to someText?
Thanks for your help.