How can I directly adjust the variable thing.myvar in this example?
Code: Select all
class element(object):
def __init__(self, myvar):
self.myvar = myvar
class example(element):
def __init__(self, myvar=None):
self.myvar =myvar
thing = example(myvar=50)
Code: Select all
screen forexample():
hbox:
bar value VariableValue("thing.myvar", 200)
I can display the variable and even use it obviously, I just can't figure out the syntax to directly manipulate this variable or the extra steps I'm missing to make it possible. Thank you.
I can manipulate thing.myvar with SetVariable() just fine though. Just can't use a slider bar with it.. I also want to make sure this variable sticks as well though because I'll need it later