help viewer

I'm a newbie Python/wxPython user and I could use some direction. I've
hacked
out an app (using Boa Constructor and Google) that analyzes laboratory
blood
values. It's working well but I'd like to add an html help viewer for my
application a bit more lightweight than a guidebook.

The help module I kludged up works, but I'm unsure how to pass it pages.
Right
now I've got a static page hardcoded.

<snip>

class exHtmlPanel(wxPanel):
   def __init__(self, parent, id, frame):
      wxPanel.__init__(self,parent,-1)

      self.html = exHtmlWindow(self, -1, frame)

      self.box = wxBoxSizer(wxVERTICAL)
      self.box.Add(self.html, 1, wxGROW)

      self.SetSizer(self.box)
      self.SetAutoLayout(true)
      self.html.LoadPage(homedir+'/index.html')

You can add a parameter (defaulted to index.html) to your exHtmlPanel's init
for the name of the page.

class exHtmlPanel(wxPanel):
   def __init__(self, parent, id, frame, pageid='index.html'):
      wxPanel.__init__(self,parent,-1)

      self.html = exHtmlWindow(self, -1, frame)

      self.box = wxBoxSizer(wxVERTICAL)
      self.box.Add(self.html, 1, wxGROW)

      self.SetSizer(self.box)
      self.SetAutoLayout(true)
      self.html.LoadPage(homedir+os.sep+pageid)

Hope that helps.

David