Using wx.html.HtmlHelpController() in Phoenix
David Hughes <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
After converting an application from Python 2.7/Classic to 3.4/Phoenix, (using Windows, OS X is OK) its help file, displayed using a class derived from wx.html.HtmlHelpController() showed all the html tags as text instead of interpretting them, see attached, although with Robin's stand alone wx.tools.helpviewer.py in Phoenix the file renders correctly. Reducing the app to the bare essentials to isolate this, I eventually discovered that the *import wx.html* that is necesary for using HtmlHelpController must be done *before* the main wx.App is defined and I was doing the import inside the derived class. You can see this effect if you move the location of the import in helpviewer.py. Not a serious problem - now I know the answer! - but I thought I would report it here to save someone's time in case anyone else runs into this. -- Regards David Hughes Forestfield Software -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
HtmlHelpWrong.png
(image/png, 87 KB) - not displayed
HtmlHelpGood.png
(image/png, 60 KB) - not displayed