X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65dd82cbcef74ea4514a7cc1407695cf9b4dba98..eda22ec3a2d70fe178a194fe58804fceacb15f4c:/utils/wxPython/demo/wxHtmlWindow.py?ds=inline diff --git a/utils/wxPython/demo/wxHtmlWindow.py b/utils/wxPython/demo/wxHtmlWindow.py index 9b187a129b..15d437e4b9 100644 --- a/utils/wxPython/demo/wxHtmlWindow.py +++ b/utils/wxPython/demo/wxHtmlWindow.py @@ -14,11 +14,17 @@ class MyHtmlWindow(wxHtmlWindow): wxHtmlWindow.__init__(self, parent, id) self.log = log - def OnLinkClicked(self, link): - self.log.WriteText('OnLinkClicked: %s\n' % link) + + def OnLinkClicked(self, linkinfo): + self.log.WriteText('OnLinkClicked: %s\n' % linkinfo.GetHref()) # Virtuals in the base class have been renamed with base_ on the font. - self.base_OnLinkClicked(link) + self.base_OnLinkClicked(linkinfo) + + + def OnSetTitle(self, title): + self.log.WriteText('OnSetTitle: %s\n' % title) + self.base_OnSetTitle(title)