tkinter make button to close the window code example Example: how to manually close tkinter window root = tk() root.destroy()