edphilpot,
I created a similar script and posted it yesterday using one class my quiz_generator
in your code you have created a Frame named it view and pass that to other functions.
joe
I created a similar script and posted it yesterday using one class my quiz_generator
in your code you have created a Frame named it view and pass that to other functions.
def getView(self, window): view = Frame(window)in a class you can change it to:
def getView(self, window): self.view = Frame(window) self.view.place(x=50,y=50) ...and reference it in other functions as without using global:
def unpackView(self): self.view.place_forget() askQuestion()best of luck,
joe