GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.html.HtmlFilter
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx.html

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.html.HtmlFilter — wxPython 4.3.2 Docs

phoenix_title wx.html.HtmlFilter¶

This class is the parent class of input filters for wx.html.HtmlWindow.

It allows you to read and display files of different file formats.

See also

Input Filters


class_hierarchy Class Hierarchy¶

Inheritance diagram for class HtmlFilter:

Inheritance diagram of HtmlFilter


method_summary Methods Summary¶

__init__

Constructor.

CanRead

Returns True if this filter is capable of reading file file.

ReadFile

Reads the file and returns string with HTML document.


api Class API¶

class wx.html.HtmlFilter(Object)¶

Possible constructors:

HtmlFilter() -> None

This class is the parent class of input filters for HtmlWindow.


Methods¶

__init__(self)¶

Constructor.

Return type:

None



CanRead(self, file)¶

Returns True if this filter is capable of reading file file.

Example:

def CanRead(file):

    # file is a wx.FSFile in this case...
    return (file.GetMimeType() == "application/x-ugh")
Parameters:

file (wx.FSFile)

Return type:

bool



ReadFile(self, file)¶

Reads the file and returns string with HTML document.

Example:

def ReadFile(file):

    # file is a wx.FSFile in this case...
    return "<html><body><img src=\"" + file.GetLocation() + \
           "\"></body></html>"
Parameters:

file (wx.FSFile)

Return type:

str

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.