This class is used by wx.html.HtmlHelpController to display help.
It is an internal class and should not be used directly - except for the case when you’re writing your own HTML help controller.
You may override this virtual method to add more buttons to the help window’s toolbar. |
|
Creates the frame. |
|
Returns the help controller associated with the frame. |
|
Sets the help controller associated with the frame. |
|
Sets the frame’s title format. |
See |
wx.html.
HtmlHelpFrame
(Frame)¶Possible constructors:
HtmlHelpFrame(data: Optional[HtmlHelpData]=None) -> None
HtmlHelpFrame(parent : Window, id: int=ID_ANY, title: str='', style:
int=HF_DEFAULT_STYLE, data: Optional[HtmlHelpData]=None, config:
Optional[ConfigBase]=None, rootpath: str='') -> None
This class is used by HtmlHelpController to display help.
__init__
(self, *args, **kw)¶__init__ (self, data: Optional[HtmlHelpData]=None)
data (wx.html.HtmlHelpData) –
None
__init__ (self, parent : Window, id: int=ID_ANY, title: str=’’, style: int=HF_DEFAULT_STYLE, data: Optional[HtmlHelpData]=None, config: Optional[ConfigBase]=None, rootpath: str=’’)
Constructor.
For the possible values of style, please see wx.html.HtmlHelpController.
parent (wx.Window) –
id (wx.WindowID) –
title (string) –
style (int) –
data (wx.html.HtmlHelpData) –
config (wx.ConfigBase) –
rootpath (string) –
None
AddToolbarButtons
(self, toolBar : ToolBar, style : int)¶You may override this virtual method to add more buttons to the help window’s toolbar.
toolBar is a pointer to the toolbar and style is the style flag as passed to the Create
method.
wx.ToolBar.Realize
is called immediately after returning from this function.
toolBar (wx.ToolBar) –
style (int) –
None
Create
(self, parent : Window, id: int=ID_ANY, title: str='', style: int=HF_DEFAULT_STYLE, config: Optional[ConfigBase]=None, rootpath: str='')¶Creates the frame.
See the constructor for a description of the parameters.
parent (wx.Window) –
id (wx.WindowID) –
title (string) –
style (int) –
config (wx.ConfigBase) –
rootpath (string) –
bool
GetClassDefaultAttributes
(variant: WindowVariant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
VisualAttributes
GetController
(self)¶Returns the help controller associated with the frame.
SetController
(self, controller : HtmlHelpController)¶Sets the help controller associated with the frame.
controller (wx.html.HtmlHelpController) –
None
SetTitleFormat
(self, format : str)¶Sets the frame’s title format.
format must contain exactly one “%s” (it will be replaced by the page title).
format (string) –
None
Controller
¶See GetController
and SetController