]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/wxHtmlWindow.py
Wrapper updates for wxHtmlLinkInfo and other changes
[wxWidgets.git] / utils / wxPython / demo / wxHtmlWindow.py
index 9b187a129bddb0199c528c31f0296612043b8ad2..15d437e4b9a7127b6ba6e5879f7198e6ae377b55 100644 (file)
@@ -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)