Okay, my problem goes as follows.
I've been writing a small program in python (an adventure game) which has hitherto run via the console. I'm now working on giving it a full interface, which is requiring a lot of changes to my rather simplistic/archaic structure and generally making things something of a pain.
Specifically, I've got a class called App, with an instance called app (so app = App(root) and root = Tk()). When I reference variables or functions in app in my main file I can change them fine. However, when I use functions with imported files and vice versa it doesn't work. So for example, I import other.py into my main file, and then I can't use the app.output function in any functions within other.py and I can't change app.(variable) by directly referencing it either.
Is there a way round this that's simple, or do I have to either pass & return a lot more data from each function in other (so I get the functions to return all the strings I want outputted, then print them), or just put all my functions in one file (which would make for a very convolutedly large file)?
Hopefully that makes some sense as a query, any help much appreciated!