I have used a view.show_popup and used an a tag for the links. But my problem is that the webbrowser is opened as soon as the documentation pops up. I rather want it to open a webpage if and only if the link is clicked.
Here is an example of the code i am using for a package called LangDocs
view.show_popup("<style>%s</style>%s" % (css, doc), max_width=700, on_navigate=webbrowser.open(url))