python - 错误选项“-options”:必须是 -default、-detail、-icon、-message、-parent、-title 或 -type
问题描述
我想在这个 showinfo 消息框中插入选项
from tkinter import *
from tkinter import messagebox
root =Tk()
root.title("Messaging box")
def popup():
messagebox.showinfo("Title","Hello World!",options = ['got it!,no'])
Button(root,text = "Popup",command = popup).pack()
root.mainloop()
请问有人可以回答吗
解决方案
推荐阅读
- flutter - 如何在颤动中通过滚动控制器中途调用函数
- html - 切换时图标不旋转
- go - 在 Pulsar 生产者上使用“SendAsync”方法时收到“收到消息的意外发送回执”警告
- node.js - Node.js - 正在执行多个 index.js 文件
- javascript - 错误:连接 ECONNREFUSED 127.0.0.1:465 发送邮件
- c++ - 如何将 C 函数转换为 C++?
- kotlin - Kotlin 类 servlet 引发 NoClassDefFoundError
- google-apps-script - Google Apps 脚本:如何使用 JSDOC 创建带有可选参数的自动完成功能?
- flutter - 如何在 rxdart Singleton 中重新打开 BehaviorSubject?
- scala - 具体和抽象 Vector 类