📜  python 退出按钮 - Python 代码示例

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

代码示例1
from tkinter import *

root = Tk()

button = Button (root, text="Exit", command=root.destroy)
button.pack()

root.mainloop()