tkinter tkMessageBox html link

自作多情 提交于 2019-12-07 05:23:34

问题


I got a tkMEssagebox.showerror showing up in a python tkinter application, when somebody failed to login with the application. Is it possible to have a url link in the tkMessageBox.showerror?

ie.

tkMessageBox.showerror("Error","An error occured please visit www.blahblubbbb.com")

and I want the www.blahblubbbb.com to be clickable?!


回答1:


Short answer: "No!" message is a simple string, no interpretation like in some widgets of other frameworks is done.

Longer answer: You could e.g. subclass+monkeypatch, to provide such feature.



来源:https://stackoverflow.com/questions/13508043/tkinter-tkmessagebox-html-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!