Merge pull request #1069 from RobinD42/fix-issue1068

Fixed the wrappers for wx.html.HtmlWindow.OnOpeningURL

(cherry picked from commit 05f871e9f7)
This commit is contained in:
Robin Dunn
2018-10-31 18:42:27 -07:00
parent ceb2f46720
commit d8ca61588d
4 changed files with 33 additions and 2 deletions

View File

@@ -39,6 +39,11 @@ class MyHtmlWindow(html.HtmlWindow):
self.log.WriteText(' %s\n' % cell.ConvertToText(sel))
return super(MyHtmlWindow, self).OnCellClicked(cell, x, y, evt)
# def OnHTMLOpeningURL(self, urlType, url):
# self.log.WriteText('OnHTMLOpeningURL: %s %s' % (urlType, url))
# if urlType == wx.html.HTML_URL_IMAGE and 'canada' not in url:
# return (wx.html.HTML_REDIRECT, "bitmaps/canada.gif")
# return (wx.html.HTML_OPEN, "")
# This filter doesn't really do anything but show how to use filters