how to close program with tkinter code example
Example 1: how to manually close tkinter window
root = tk()
root.destroy()
Example 2: python tkinter how to close a window
root.destroy()
root = tk()
root.destroy()
root.destroy()