help with wxHtmlHelpController

I'm running on Fedora Core2, wx 2.4.2.4, python 2.3.3

I've tried running the code here:

helpfile = "blah.hhp"
wxFileSystem_AddHandler(wxZipFSHandler())
helpctrl = wxHtmlHelpController()
#helpctrl.SetTempDir('/tmp') # this did not appear to help

helpctrl.AddBook( helpfile, 1)
helpctrl.DisplayContents()

..

unless I have a html directory with the html files in it, I get an error saying it can't load html/whateverfile.html

Michael Beaulieu wrote:

I'm running on Fedora Core2, wx 2.4.2.4, python 2.3.3

I've tried running the code here:

helpfile = "blah.hhp"
wxFileSystem_AddHandler(wxZipFSHandler())
helpctrl = wxHtmlHelpController()
#helpctrl.SetTempDir('/tmp') # this did not appear to help

helpctrl.AddBook( helpfile, 1)
helpctrl.DisplayContents()

..

unless I have a html directory with the html files in it, I get an error saying it can't load html/whateverfile.html

Well, where does blah.hhp say that the html files are at? In html/whateverfile.html?

You might want to take a look at the wx/tools/helpviewer.py module, and the contents of the wxPythonDocs tarball for an example.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!