tkinter how to make a window close code example Example: python tkinter close gui window from tkinter import * root=tk.Tk() root.destroy()