def OnLinkClicked(self, link):
# If Link is an anchor link let the html window do its job
# If it is not an anchor link let the default browser open the page
href = link.GetLinkInfo().GetHref()
anchor = href[1:]
if href.startswith('#'):
self.html.ScrollToAnchor(anchor)
else:
wx.BeginBusyCursor()
webbrowser.open(href)
wx.EndBusyCursor()
评论列表
文章目录