python how to close tkinter app code example Example: how to manually close tkinter window root = tk() root.destroy()