tkinter TopLevel close code example
Example: tkinter delete toplevel
main = Toplevel()
def ded():
main.destroy()
exit = Button(main, text = "Exit", padx = 20 , pady = 10, command = ded)
exit.grid(row = 0, column = 0)
main = Toplevel()
def ded():
main.destroy()
exit = Button(main, text = "Exit", padx = 20 , pady = 10, command = ded)
exit.grid(row = 0, column = 0)