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