[wxPython-users] A way to toggle hide / showing tabs in a wx(AUI)Notebook?

Jorgen Bodde jorgen.maillist at gmail.com
Wed Jul 4 00:02:38 PDT 2007


Hi Andrea,

Thanks for your suggestion! I will look into the code .. for now it
was a nice to have" feature and it will require some code overhaul so
I might leave that for now.. I didn't feel good with my found solution
and it seems the notebook ctrl was not happy with my approach either
;-)

Regards,
- Jorgen

On 7/3/07, Andrea Gavana <andrea.gavana at gmail.com> wrote:
> Hi Jorgen,
>
> On 7/3/07, Jorgen Bodde wrote:
> > I wish to hide tabs but not destroy them. I want the windows to be
> > created as pages but detached from the wxNotebook first .. A problem
> > there is that the controls are still visible on the wxNotebook even
> > when the page is not added. I tried an ugly hack by hiding the whole
> > panel but creating it as child from the wxNotebook, and when needed,
> > re-add it with InsertPage and making the page visible. This is not
> > really a desired implementation for a simple hide functionality ..
> > does anyone know a tab manager that does implement hide possibilities?
>
> <snip>
> <snap>
>
> > Creating and destroying pages is not an option for me unfortunately.
> > Does anyone have a workaround / solution / component that can hide
> > whole pages?
>
> The only control close to a wx.Notebook I know of, which is able to do
> what you ask, is the first "notebook" I wrote almost a couple of years
> ago, called NotebookCtrl:
>
> http://xoomer.alice.it/infinity77/eng/freeware.html#notebookctrl
>
> It's been a while since someone has actually used it (myself included)
> and, even if I never encountered big problems, I received few bug
> reports about it on GTK. You might try it, in case you are interested.
> Otherwise, I would probably steal the FlatNotebook code (PageContainer
> class) and hack it to add this functionality. It shouldn't be that
> hard... it's Python :-D
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.alice.it/infinity77/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>




More information about the wxpython-users mailing list