📜  tkinter delete toplevel - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:39.146000             🧑  作者: Mango

代码示例1
main = Toplevel()

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