I don't know what I'm doing wrong but when I create Toplevel in a function it doesn't recognize it as a global variable. When I put global or nonlocal before the creation of the toplevel widget, a message stating that there's invalid syntax is displayed.
def StartClick():
MainMenu.withdraw
nonlocal CHONE_1Sc = tk.Toplevel()