exit window tkinter 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()
from tkinter import *
root=tk.Tk()
root.destroy()
root.destroy()