Is the wx.tools.helpviewer.py supposed to work with 2.9.5+?
In the past I used to just do "os.startfile("somehelpfile.chm")" but wanted to see if there is something more cross platform to show help information.
But I get this exception:
Traceback (most recent call last):
File "helpviewer.py", line 89, in <module>
main()
File "helpviewer.py", line 63, in main
wx.FileSystem.AddHandler(wx.ArchiveFSHandler())
AttributeError: 'module' object has no attribute 'ArchiveFSHandler'
which will brin gup the system browser -- but I think it would need to
be plain html, rather than chm -- not sure what non-windows browsers
would do with chm.
I've used this for help, it works fine. I actually prefer to use the
wx.HTML control, but our web designer recently "cleaned up" the help
for an app, a piled a bunch of CSS, etc in there, so no longer useable
with wx.HTML. It does look a lot better, but I'd have rather kept it
simple. Oh Well.
-Chris
···
On Wed, Mar 27, 2013 at 10:19 AM, Werner <werner.bruhin@sfr.fr> wrote:
In the past I used to just do "os.startfile("somehelpfile.chm")" but wanted
to see if there is something more cross platform to show help information.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Is the wx.tools.helpviewer.py supposed to work with 2.9.5+?
In the past I used to just do "os.startfile("somehelpfile.chm")" but
wanted to see if there is something more cross platform to show help
information.
But I get this exception:
Traceback (most recent call last):
File "helpviewer.py", line 89, in <module>
main()
File "helpviewer.py", line 63, in main
wx.FileSystem.AddHandler(wx.ArchiveFSHandler())
AttributeError: 'module' object has no attribute 'ArchiveFSHandler'
Are you using the Phoenix version of helpviewer with Classic?
Hhm, should the wx.ArchiveFSHandler maybe be wx.ZipFSHandler?
At this point the the help file shows up, but fonts are not nice, and some other stuff does not layout nicely.
I am using Sphinx to generate the help stuff, so as Chris suggests maybe just use a browser to show it is a better way to go.
Werner
···
On 27/03/2013 18:19, Werner wrote:
Hi,
Is the wx.tools.helpviewer.py supposed to work with 2.9.5+?
In the past I used to just do "os.startfile("somehelpfile.chm")" but wanted to see if there is something more cross platform to show help information.
But I get this exception:
Traceback (most recent call last):
File "helpviewer.py", line 89, in <module>
main()
File "helpviewer.py", line 63, in main
wx.FileSystem.AddHandler(wx.ArchiveFSHandler())
AttributeError: 'module' object has no attribute 'ArchiveFSHandler'
Oops, that is exactly what happened - sorry about the noise.
Werner
···
On 27/03/2013 19:22, Robin Dunn wrote:
Werner wrote:
Hi,
Is the wx.tools.helpviewer.py supposed to work with 2.9.5+?
In the past I used to just do "os.startfile("somehelpfile.chm")" but
wanted to see if there is something more cross platform to show help
information.
But I get this exception:
Traceback (most recent call last):
File "helpviewer.py", line 89, in <module>
main()
File "helpviewer.py", line 63, in main
wx.FileSystem.AddHandler(wx.ArchiveFSHandler())
AttributeError: 'module' object has no attribute 'ArchiveFSHandler'
Are you using the Phoenix version of helpviewer with Classic?
At this point the the help file shows up, but fonts are not nice, and
some other stuff does not layout nicely.
I am using Sphinx to generate the help stuff, so as Chris suggests maybe
just use a browser to show it is a better way to go.
I'm hoping that some someone will create a new HtmlHelpController class that uses the new (html2) WebView classes instead of the old wxHtml classes. But so far that hasn't happened.
Is there a demo of this somewhere? I don't think I've ever used it.
···
On Wed, Mar 27, 2013 at 1:33 PM, Robin Dunn <robin@alldunn.com> wrote:
werner wrote:
At this point the the help file shows up, but fonts are not nice, and
some other stuff does not layout nicely.
I am using Sphinx to generate the help stuff, so as Chris suggests maybe
just use a browser to show it is a better way to go.
I'm hoping that some someone will create a new HtmlHelpController class
that uses the new (html2) WebView classes instead of the old wxHtml
classes. But so far that hasn't happened.
At this point the the help file shows up, but fonts are not
nice, and
some other stuff does not layout nicely.
I am using Sphinx to generate the help stuff, so as Chris
suggests maybe
just use a browser to show it is a better way to go.
I'm hoping that some someone will create a new HtmlHelpController
class that uses the new (html2) WebView classes instead of the old
wxHtml classes. But so far that hasn't happened.
Is there a demo of this somewhere? I don't think I've ever used it.
See samples/wxPIA_book/Chapter-16/html_help.py for an example of integrating HtmlHelpController in an application. The helpviewer script Werner was asking about is in wx.tools.helpviewer, and is basically just a standalone version of the same thing.
···
On Wed, Mar 27, 2013 at 1:33 PM, Robin Dunn <robin@alldunn.com > <mailto:robin@alldunn.com>> wrote:
Would be really nice if it could handle pages generated by Sphinx.
Werner
···
On 27/03/2013 19:33, Robin Dunn wrote:
werner wrote:
At this point the the help file shows up, but fonts are not nice, and
some other stuff does not layout nicely.
I am using Sphinx to generate the help stuff, so as Chris suggests maybe
just use a browser to show it is a better way to go.
I'm hoping that some someone will create a new HtmlHelpController class that uses the new (html2) WebView classes instead of the old wxHtml classes. But so far that hasn't happened.