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