Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都可以帮助我如何激活 tkMessageBox 的 askquestion() 的“关闭”按钮吗?
通过“激活”,您的意思是让用户可以通过单击关闭(“X”)按钮来关闭消息框?
我认为不可能使用tkMessageBox. 我想你最好的选择是自己实现一个具有此功能的对话框。
tkMessageBox
BTW:askquestion()当用户关闭对话框时应该返回什么?
askquestion()