I want to create an AUI layout that has a left navigation area, right
edit area, and a bottom area that is an AUI notebook with one or more
tabs. The question I have is, how to programatically create the bottom
tab(s) so that the end result is the same as if the user had dragged
panes and dropped them in the little notebook guide that appears?
I've tried creating an AUINotebook control and placing it with
AuiPaneInfo().Bottom(), but then if I drag some other panel on top I
get a second notebook, where one tab is the original notebook and the
other tab is the dropped panel, so clearly that's not the right
solution.
I've also tried setting AuiPaneInfo().NotebookControl(0) for one
panel, and setting AuiPaneInfo().NotebookPage(0,1) on the pane I want
as a tab, but that doesn't work right either -- I never see any tabs,
and some of the controls aren't visible at all.
I've attached what seems to me like the logical (to me) solution, but
it doesn't work. What am I doing wrong?
I'm using wxPython 2.8.11.0, gtk2-unicode and mac-unicode.
I want to create an AUI layout that has a left navigation area, right
edit area, and a bottom area that is an AUI notebook with one or more
tabs. The question I have is, how to programatically create the bottom
tab(s) so that the end result is the same as if the user had dragged
panes and dropped them in the little notebook guide that appears?
Create an AUInotebook and use its AddPage method
I've tried creating an AUINotebook control and placing it with
AuiPaneInfo().Bottom(), but then if I drag some other panel on top I
get a second notebook, where one tab is the original notebook and the
other tab is the dropped panel, so clearly that's not the right
solution.
Supply the NotebookDockable(False) property to your AuiPaneInfo to
disable the ability for other panes to be docked in the notebook.
Thanks. That's close, but I want other panels to be dockable -- I just
don't want that to create a notebook inside (or outside...) my
existing notebook. I just want a single notebook on the bottom that
has some prepopulated tabs, and I also want users to be able to drag
other panels to create more tabs.
I've found in other places on the web that I can use the target
attribute when I add a pane, but that only works for the first time I
try to add a pane on another pane. I can automatically create a
notebook with two panels, but if I try with a third it doesn't work.
I guess if I have to I can lose the ability to dock other panels to
the bottom notebook, but I would rather not.
···
On Tue, Jun 7, 2011 at 12:55 PM, Cody Precord <codyprecord@gmail.com> wrote:
Hi,
On Tue, Jun 7, 2011 at 12:25 PM, Bryan Oakley <bryan.oakley@gmail.com> wrote:
I want to create an AUI layout that has a left navigation area, right
edit area, and a bottom area that is an AUI notebook with one or more
tabs. The question I have is, how to programatically create the bottom
tab(s) so that the end result is the same as if the user had dragged
panes and dropped them in the little notebook guide that appears?
Create an AUInotebook and use its AddPage method
I've tried creating an AUINotebook control and placing it with
AuiPaneInfo().Bottom(), but then if I drag some other panel on top I
get a second notebook, where one tab is the original notebook and the
other tab is the dropped panel, so clearly that's not the right
solution.
Supply the NotebookDockable(False) property to your AuiPaneInfo to
disable the ability for other panes to be docked in the notebook.