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