📜  tkinter 对话框 - 任何代码示例

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

代码示例2
from tkinter import messagebox

answer = messagebox.askokcancel("Question","Do you want to open this file?")
answer = messagebox.askretrycancel("Question", "Do you want to try that again?")
answer = messagebox.askyesno("Question","Do you like Python?")
answer = messagebox.askyesnocancel("Question", "Continue playing?")