My application uses AUI. I've placed an AUI pane with a FlatNotebook on the right side of my window. The FlatNotebook has several pages. Now I'd like to undock one of those pages and make it a floating window. Is this currently possibly? I tried the demo and it doesn't seem so, but maybe I missed something.
My application uses AUI. I've placed an AUI pane with a FlatNotebook on the
right side of my window. The FlatNotebook has several pages. Now I'd like to
undock one of those pages and make it a floating window. Is this currently
possibly? I tried the demo and it doesn't seem so, but maybe I missed
something.
Any other easy means to achieve this behaviour?
Not with FlatNotebook, I don't think it's possible without some
extensive work on it. You may try with AuiNotebook using a nice
implementation Frank Niessink posted few weeks ago:
I am about to release the pure-Python version of wxAUI, in which
AuiNotebook will have almost the same features as FlatNotebook and we
may hack it to support floating notebook pages.
Not with FlatNotebook, I don't think it's possible without some
extensive work on it. You may try with AuiNotebook using a nice
implementation Frank Niessink posted few weeks ago:
I am about to release the pure-Python version of wxAUI, in which
AuiNotebook will have almost the same features as FlatNotebook and we
may hack it to support floating notebook pages.
Thank you for the pointers Andrea. I've just tried wx.AUI_Notebook and it
works fine. The main differences between FlatNotebook and AUINotebook are:
1) I can use the tab drop down list together with the nav buttons now, FNB
has a bug which prevents this. But the AUINotebook tab drop down menu
doesn't feature the tab images, only a check list.
There is an obvious advantage of having a check list instead of
images: with a check list, you know which page is selected by looking
at the drop down menu. With images, you can't know it... if wx.Menu
supported both check and images, I could put this modification in my
AUI version to have both images and check list.
2) I can only move a tab within the pane/AUINotebook it was created in. With
FNB I could have 2 panes with one notebook each (e.g. one at the bottom and
one at the right) and then I could drag notebook pages between those two.
Now this is not possible anymore. I already specify
AUI_NB_TAB_EXTERNAL_MOVE, but it doesn't seem to help.
That seems strange to me. I can move tabs between AuiNotebooks without
problems. Have you tried using something like this: