Tkinter supprime le niveau de tople

main = Toplevel()

def ded():
	main.destroy()
    
exit = Button(main, text = "Exit", padx = 20 , pady = 10, command = ded)
exit.grid(row = 0, column = 0)
Oh Baby