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