Scrolled HtmlWindow in notebook page?

The problem might be the wxHtmlWindow inside a notebook page. Here is a
code snippet copied from the Main.py file of the wxPython 2.4.2.4 demo:

     ....
     # Set up a wx.html.HtmlWindow on the Overview Notebook page
     # we put it in a panel first because there seems to be a
     # refresh bug of some sort (wxGTK) when it is directly in
     # the notebook ...
     if 0: # the old way
         self.ovr = wx.html.HtmlWindow(self.nb, -1, size=(400, 400))
         self.nb.AddPage(self.ovr, self.overviewText)

     else: # hopefully I can remove this hacky code soon, see SF bug #216861
         panel = wx.Panel(self.nb, -1, style=wx.CLIP_CHILDREN)
         self.ovr = wx.html.HtmlWindow(panel, -1, size=(400, 400))
         self.nb.AddPage(panel, self.overviewText)

         def OnOvrSize(evt, ovr=self.ovr):
             ovr.SetSize(evt.GetSize())

         wx.EVT_SIZE(panel, OnOvrSize)
         wx.EVT_ERASE_BACKGROUND(panel, EmptyHandler)
     ....

Maybe that helps,

/Jean Brouwers
  ProphICy Semiconductor.

···

gary.h.merrill@gsk.com wrote:

I would like to put a table inside a wxHtmlWindow in a notebook page and
have the table remain at its "natural" size (i.e., so that none of the text
in the cells is wrapped) but be able to scroll both horizontally and
vertically across the table.

I've tried to do this with wxScrolledPanel and wxScrolledWindow, but
without any success. What is the best way to accomplish this -- assuming
that it's possible.

--------------------------------------
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org