Tkinter - Multiple windows opening Tkinter - Multiple windows opening tkinter tkinter

Tkinter - Multiple windows opening


You just need make up a variable to keep track of if you have a note window open or not.

tex.notes_open = Falsedef note_area():    if tex.notes_open:         return # abort the function, notes already open    else:        tex.notes_open = True # set the flag for the next time        # rest of your code