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