tkinter python close window 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()