Abstract interface to a HTML rendering window (such as wx.html.HtmlWindow or wx.html.HtmlListBox) that is passed to wx.html.HtmlWinParser.
It encapsulates all communication from the parser to the window.
Class Hierarchy¶Inheritance diagram for class
HtmlWindowInterface:
Known Subclasses¶ Methods Summary¶ Properties Summary¶ Class API¶Possible constructors:
HtmlWindowInterface() -> None
Abstract interface to a HTML rendering window (such as HtmlWindow or HtmlListBox) that is passed to HtmlWinParser.
Ctor.
None
Returns background colour to use by default.
Colour
Returns mouse cursor of given type.
type (HtmlWindowInterface.HTMLCursor)
Cursor
Returns the window used for rendering (may be None
).
Window
Converts coordinates pos relative to given cell to physical coordinates in the window.
cell (wx.html.HtmlCell)
pos (wx.Point)
Point
Called when a link is clicked.
link (wx.html.HtmlLinkInfo) â information about the clicked link
None
Called when the parser needs to open another URL (e.g.
an image).
type (HtmlURLType) â Type of the URL request (e.g. image)
url (string) â URL the parser wants to open
If the return value is wx.html.HTML_REDIRECT
, then the URL to redirect to will be stored in this variable (the pointer must never be None
)
Tuple[HtmlOpeningStatus, str]
indicator of how to treat the request
Sets windowâs background to colour clr.
clr (wx.Colour)
None
Sets windowâs background to given bitmap.
bmpBg (wx.BitmapBundle)
None
Sets status bar text.
text (string)
None
Called by the parser to set windowâs title to given text.
title (string)
None
See GetHTMLWindow
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4