how do I close tkinter widgets from outside of the main loop code example Example: python tkinter close gui window from tkinter import * root=tk.Tk() root.destroy()