[Solved] python variables between functions
Working example with global variable and two windows. It uses only one mainloop() and Toplevel() to create second window. import tkinter as tk # — functions — def main(): #inform function to use external/global variable global int_var # only if you will use `=` to change value root = tk.Tk() root.title(“Root”) # change global variable … Read more