How can I change the properties of an object when it's created in another file?
Check this example:
It's a simple form with a label and a button, when you click on the button the label must change to something else. To keep my code readable I want the GUI-creation in another file:
I can click the button and the code (which is in the mainfile) is executed, but I cannot find how to change the label itself. In this example I get the error "AttributeError: type object 'Frame1' has no attribute 'Label1'. What's the right syntax for this? Keeping this all in one file, there's no problem, but I really want it to be splitted