what stops a window from being destroyed tkinter code example
Example 1: Tk.destroy arguments
root = Tk()
#make sure that you define your Tkinter window , even though if you dont by impoerting tkinter if no Tk() window is defined it will automatically create one
root.destroy()
#here Tk.destroy() WILL NOT WORK
Example 2: python tkinter close gui window
from tkinter import *
root=tk.Tk()
root.destroy()
Example 3: how to kill tkinter
root=Tk()
root.destroy()