Im working on a project based off of the following example that I was shown. The buttons in the example call
lambda: controller.show_frame(PageTwo)
to change the window or "frame", but I need to call this from within another function, not from a button, and I keep getting an error. The following is a cheesy "activation checker"
def KeyCheck(key_input,controller):
import tkinter.messagebox
if key_input in ["18806-47599-37423", "188064759937423"]:
controller.show_frame(PageTwo)
print ("good")
else:
tkinter.messagebox.showinfo("Invalid Key", "They key entered is not valid for activation.")
But trying to call back to this "controller" no longer works. Any suggestions are appreciated.