wx.html.HtmlHelpData¶
This class is used by wx.html.HtmlHelpController and wx.html.HtmlHelpFrame to access HTML help items.
It is internal class and should not be used directly - except for the case you’re writing your own HTML help controller.
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Adds new book. |
|
Returns page’s URL based on integer |
|
Returns page’s URL based on its (file)name. |
|
Returns array with help books info. |
|
Returns reference to array with contents entries. |
|
Returns reference to array with index entries. |
|
Sets the temporary directory where binary cached versions of MS HTML Workshop files will be stored. |
Properties Summary¶
See |
|
See |
|
See |
Class API¶
- class wx.html.HtmlHelpData(Object)¶
Possible constructors:
HtmlHelpData() -> None
This class is used by HtmlHelpController and HtmlHelpFrame to access HTML help items.
Methods¶
- __init__(self)¶
Constructor.
- Return type:
None
- AddBook(self, book_url)¶
Adds new book.
book_url is URL (not filename!) of HTML help project (hhp) or
ZIP
file that contains arbitrary number of .hhp projects (this zip file can have either .zip or .htb extension, htb stands for “html book”).Returns success.
- Parameters:
book_url (string)
- Return type:
bool
- FindPageById(self, id)¶
Returns page’s URL based on integer
ID
stored in project.- Parameters:
id (int)
- Return type:
str
- FindPageByName(self, page)¶
Returns page’s URL based on its (file)name.
- Parameters:
page (string)
- Return type:
str
- GetBookRecArray(self)¶
Returns array with help books info.
- Return type:
HtmlBookRecArray
- GetContentsArray(self)¶
Returns reference to array with contents entries.
- Return type:
HtmlHelpDataItems
- GetIndexArray(self)¶
Returns reference to array with index entries.
- Return type:
HtmlHelpDataItems
- SetTempDir(self, path)¶
Sets the temporary directory where binary cached versions of MS HTML Workshop files will be stored.
(This is turned off by default and you can enable this feature by setting non-empty temp dir.)
- Parameters:
path (string)
- Return type:
None
Properties¶
- BookRecArray¶
See
GetBookRecArray
- ContentsArray¶
See
GetContentsArray
- IndexArray¶
See
GetIndexArray