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.
__init__ |
Ctor. |
GetHTMLBackgroundColour |
Returns background colour to use by default. |
GetHTMLCursor |
Returns mouse cursor of given type. |
GetHTMLWindow |
Returns the window used for rendering (may be None ). |
HTMLCoordsToWindow |
Converts coordinates pos relative to given cell to physical coordinates in the window. |
OnHTMLLinkClicked |
Called when a link is clicked. |
OnHTMLOpeningURL |
Called when the parser needs to open another URL (e.g. |
SetHTMLBackgroundColour |
Sets window’s background to colour clr. |
SetHTMLBackgroundImage |
Sets window’s background to given bitmap. |
SetHTMLStatusText |
Sets status bar text. |
SetHTMLWindowTitle |
Called by the parser to set window’s title to given text. |
HTMLBackgroundColour |
See GetHTMLBackgroundColour and SetHTMLBackgroundColour |
HTMLWindow |
See GetHTMLWindow |
wx.html.
HtmlWindowInterface
(object)¶Possible constructors:
HtmlWindowInterface()
Abstract interface to a HTML rendering window (such as HtmlWindow or HtmlListBox) that is passed to HtmlWinParser.
__init__
(self)¶Ctor.
GetHTMLBackgroundColour
(self)¶Returns background colour to use by default.
Return type: | Colour |
---|
GetHTMLCursor
(self, type)¶Returns mouse cursor of given type.
Parameters: | type (HtmlWindowInterface.HTMLCursor) – |
---|---|
Return type: | Cursor |
GetHTMLWindow
(self)¶Returns the window used for rendering (may be None
).
Return type: | Window |
---|
HTMLCoordsToWindow
(self, cell, pos)¶Converts coordinates pos relative to given cell to physical coordinates in the window.
Parameters: |
|
---|---|
Return type: | Point |
OnHTMLLinkClicked
(self, link)¶Called when a link is clicked.
Parameters: | link (wx.html.HtmlLinkInfo) – information about the clicked link |
---|
OnHTMLOpeningURL
(self, type, url, redirect)¶Called when the parser needs to open another URL (e.g.
an image).
Parameters: |
|
---|---|
Return type: | |
Returns: | indicator of how to treat the request |
SetHTMLBackgroundColour
(self, clr)¶Sets window’s background to colour clr.
Parameters: | clr (wx.Colour) – |
---|
SetHTMLBackgroundImage
(self, bmpBg)¶Sets window’s background to given bitmap.
Parameters: | bmpBg (wx.Bitmap) – |
---|
SetHTMLStatusText
(self, text)¶Sets status bar text.
Parameters: | text (string) – |
---|
SetHTMLWindowTitle
(self, title)¶Called by the parser to set window’s title to given text.
Parameters: | title (string) – |
---|
HTMLBackgroundColour
¶HTMLWindow
¶See GetHTMLWindow