how to destroy complete python execution window code example Example: how to kill tkinter root=Tk() root.destroy()