wxPageSizer (was Hiding wxNotebook tabs)

Robin Dunn robin at alldunn.com
Thu Aug 3 09:01:06 PDT 2006


Armel Asselin wrote:
> Hello,
> 
> just wanted to know if there was a sizer doing exactly the notebook job, 
> without any visual artifacts?
> this sizer would:
> - take the place of the biggest contained object
> - allow to select one of the objects at a time
> 
> if not, it could be used as the placement principle for many widgets such as 
> notebook,  wizard... it would avoid code duplication. I would have been 
> happy to have when I made the options box of ecmerge.
> 
> so, is there already something like that?

Some wxPython users have solved this in the past simply by putting all 
of the pages in a box sizer, but hiding all but one of them.  When you 
want to switch pages you hide the currently shown page, show the other, 
and then layout the sizer again.

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





More information about the wx-users mailing list