AnsweredAssumed Answered

Moving a String to a StringVar

Question asked by hackerp on Jul 28, 2016
Latest reply on Jul 28, 2016 by hackerp

I am using the Entry Widget. In it I have:

 

global HoldString

HoldString = StringVar()

HoldString.set("")

 

Later I want the HoldString to have the value of a string that was made earlier like:

 

abc = "asdadad"

Trying

 

HoldString.set(abc)

 

just gives me a cryptic   PY_VAR0 when I try to print the value of HoldString

 

It seems I can only set it to a literal like HoldString("asdadad")

 

Is there anyway move the value of a string to a StringVar?

Thanks!

Outcomes