[wxPython-users] A way to toggle hide / showing tabs in a
wx(AUI)Notebook?
Andrea Gavana
andrea.gavana at gmail.com
Tue Jul 3 11:29:58 PDT 2007
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/
More information about the wxpython-users
mailing list