Expanding a book in HTMLHelpController by default?

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 :slight_smile:

help = wx.html.HtmlHelpController()
help.AddBook(_file)
help.DisplayContents()

Thanks,
Steven Sproat

Steven Sproat wrote:

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 :slight_smile:

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!