[wxPython-users] 2 panels in a NotebookPage

Robin Dunn robin at alldunn.com
Wed Oct 24 15:20:48 PDT 2007


Matthieu Brucher wrote:
> Thank you, this seems to work on Linux, I have to check if it works with 
> Windows this evening. *I tried something like this before, but it was 
> obviously not correct.
> In fact, the only change is that you use the panel on the whole notebook 
> page. This should work without it, shouldn't it ? Or is the NotebookPage 
> the whole page with the tab ?

wx.NotebookPage is essentially just a wx.Panel with an EVT_SIZE handler 
that forces the first child window to completely cover itself.  This was 
a convenience class to help work around an old redraw bug on wxGTK.  I 
don't think there is any reason to use it any more, so you can just use 
a wx.Panel for the page window and layout things on it as needed.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list