如何在 tkinter 发生错误时创建消息框
解释起来有点困难。我想要一个消息框来在发生错误时进行提示。例如,我有一个用户界面,允许用户从组合框中选择选项并根据选择创建文件。我想提示一个消息框,例如当组合框未完成时。
为了简化,当发生错误并打印在 python 终端上时,我希望弹出一个消息框并告诉用户“你做错了什么”。有什么办法可以做到这一点吗?因为我实在找不到这方面的教程。
希望这足够清楚地理解。
it is a little bit difficult to explain. I would like a message box to prompt anytime an error occured. For example I have an user interface which allows the user to select options from combobox and create a file depending on the choice. I would like to prompt a messagebox for example when a combobox is not completed.
To simplify, when an error occured and is printed on the python terminal, I want a messagebox to pop-up and tell the user "you do something wrong". Is there any way to do that ? Because I can't really find tutorials on it.
Hope this is clear enough to understand.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论