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