+ def OnCellMouseHover(self, cell, x, y):
+ self.log.WriteText('OnCellMouseHover: %s, (%d %d)\n' % (cell, x, y))
+ self.base_OnCellMouseHover(cell, x, y)
+
+ def OnCellClicked(self, cell, x, y, evt):
+ self.log.WriteText('OnCellClicked: %s, (%d %d)\n' % (cell, x, y))
+ self.base_OnCellClicked(cell, x, y, evt)
+
+
+# This filter doesn't really do anything but show how to use filters
+class MyHtmlFilter(wxHtmlFilter):
+ def __init__(self, log):
+ wxHtmlFilter.__init__(self)
+ self.log = log
+
+ # This method decides if this filter is able to read the file
+ def CanRead(self, fsfile):
+ self.log.write("CanRead: %s\n" % fsfile.GetMimeType())
+ return False
+
+ # If CanRead returns True then this method is called to actually
+ # read the file and return the contents.
+ def ReadFile(self, fsfile):
+ return ""