+# This filter doesn't really do anything but show how to use filters
+class MyHtmlFilter(html.HtmlFilter):
+ def __init__(self, log):
+ html.HtmlFilter.__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 ""
+
+
+class TestHtmlPanel(wx.Panel):