Hi I\'ve been struggling to get this to work, each time i change something I receive another error. I\'ve been trying to create an entry box with a function and then get the var
This is the correct way to create a StringVar
object:
text = StringVar() # note additional ()
Can you explain me what x
is in the following statement:
lambda: x.myFunc(self.my_variable.get(self))
x
is not visible inside the class, because it's declared outside the class.
myFunc
is not indented correctly: you should indent it like the __init__
method.
I really recommend you to watch some tutorials on OOP before proceeding. You are basically trying to guess how OOP works.