When I load my book using this code, the book I add isn't expanded by default - I'd like the root note to open, to show its contents without the user having to click it, since it's a small target, Fitt's law and all that UI stuff
help = wx.html.HtmlHelpController()
help.AddBook(_file)
help.DisplayContents()
When I load my book using this code, the book I add isn't expanded by default - I'd like the root note to open, to show its contents without the user having to click it, since it's a small target, Fitt's law and all that UI stuff
help = wx.html.HtmlHelpController()
help.AddBook(_file)
help.DisplayContents()
I haven't tried it but I would guess that if you also call Display(pageName) for the first page in the book that it will expand the tree so it can select that node.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!