wx.lib.agw.AUI working on a wx.Notebook page?

I'm using a wx.Notebook for switching between two rather
different aspects of an app. Page 1's layout is simple but
Page 2 has multiple optional subpanels that would benefit
much from wx.lib.agw.AUI's abilities (user able to move
panels around, delete them, save perspective, etc.)

However, AFAIK, wx.lib.agw.aui (and wx.aui) manage
subpanels at the level of a *frame*, not a panel (in this
case, a wxNotebook page). So I could not use AUI to
manage the subpanels in that notebook page, correct?

Is there any way to get this effect? I like the simple
and native look of the wxNotebook (and also do not
want the AUINotebooks's "x" to allow closing a page),
for managing "standard" parts of the GUI but like the
AUI for managing "elective" subpanels and was hoping
they could work together.

Thanks,
Che

C M wrote:

I'm using a wx.Notebook for switching between two rather
different aspects of an app. Page 1's layout is simple but
Page 2 has multiple optional subpanels that would benefit
much from wx.lib.agw.AUI's abilities (user able to move
panels around, delete them, save perspective, etc.)

However, AFAIK, wx.lib.agw.aui (and wx.aui) manage
subpanels at the level of a *frame*, not a panel (in this
case, a wxNotebook page). So I could not use AUI to
manage the subpanels in that notebook page, correct?
  

Panel is fine, see attached. There is a problem (see earlier posts and trac) if you allow to minimize a panel in the aui.nb, hopefully Andrea will be able to resolve this at some point.

Is there any way to get this effect? I like the simple
and native look of the wxNotebook (and also do not
want the AUINotebooks's "x" to allow closing a page),
  

Same here, this is just a matter of setting the correct style:
        bookStyle = aui.AUI_NB_DEFAULT_STYLE
        bookStyle &= ~(aui.AUI_NB_CLOSE_ON_ACTIVE_TAB)

for managing "standard" parts of the GUI but like the
AUI for managing "elective" subpanels and was hoping
they could work together.
  

Hope this helps
Werner

auiMultiPanelInNB.py (3.45 KB)

Thanks, Werner, it does help. First, it finally prompted me to
upgrade to 2.8.10, and I am really pleasantly surprised to see
that AUI works on a panel. I have some small problems with
it for now, but will look at it more. I have also put it as a page
of a regular wx.Notebook and it worked great--it's nice when
one is wrong about something one hopes to be wrong about.
Lots of options now. Thanks, and thanks to Andrea for agw!
(and to Werner for doing so much testing of it).

Che

···

On Mon, Aug 3, 2009 at 6:12 AM, Werner F. Bruhin<wbruhin@gmail.com> wrote:

C M wrote:

I'm using a wx.Notebook for switching between two rather
different aspects of an app. Page 1's layout is simple but
Page 2 has multiple optional subpanels that would benefit
much from wx.lib.agw.AUI's abilities (user able to move
panels around, delete them, save perspective, etc.)

However, AFAIK, wx.lib.agw.aui (and wx.aui) manage
subpanels at the level of a *frame*, not a panel (in this
case, a wxNotebook page). So I could not use AUI to
manage the subpanels in that notebook page, correct?

Panel is fine, see attached. There is a problem (see earlier posts and
trac) if you allow to minimize a panel in the aui.nb, hopefully Andrea
will be able to resolve this at some point.

Is there any way to get this effect? I like the simple
and native look of the wxNotebook (and also do not
want the AUINotebooks's "x" to allow closing a page),

Same here, this is just a matter of setting the correct style:
bookStyle = aui.AUI_NB_DEFAULT_STYLE
bookStyle &= ~(aui.AUI_NB_CLOSE_ON_ACTIVE_TAB)

for managing "standard" parts of the GUI but like the
AUI for managing "elective" subpanels and was hoping
they could work together.

Hope this helps
Werner

Hi Che,

Thanks, Werner, it does help. First, it finally prompted me to
upgrade to 2.8.10, and I am really pleasantly surprised to see
that AUI works on a panel. I have some small problems with
it for now, but will look at it more. I have also put it as a page
of a regular wx.Notebook and it worked great--it's nice when
one is wrong about something one hopes to be wrong about.
Lots of options now. Thanks, and thanks to Andrea for agw!
(and to Werner for doing so much testing of it).

If you wish to play with agw.aui, I would suggest you to update your
copy of wx.lib.agw using the SVN version of it. I have fixed many bugs
and added new features in SVN. Moreover, any bug/misbehaviour you may
find will be directly comparable with the SVN version (easier for me
to deal with).

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

2009/8/3 C M <cmpython@gmail.com>:

Good point, thanks. This is still the current SVN address, correct?
http://svn.wxwidgets.org/viewvc/wx/wxPython/3rdParty/AGW/

I haven't used SVN much (at all? I have used CVS). I can just check
out the whole wx.lib.agw and replace my folder of that in the wx folder,
right?

Che

···

On Tue, Aug 4, 2009 at 5:16 PM, Andrea Gavana<andrea.gavana@gmail.com> wrote:

Hi Che,

2009/8/3 C M <cmpython@gmail.com>:

Thanks, Werner, it does help. First, it finally prompted me to
upgrade to 2.8.10, and I am really pleasantly surprised to see
that AUI works on a panel. I have some small problems with
it for now, but will look at it more. I have also put it as a page
of a regular wx.Notebook and it worked great--it's nice when
one is wrong about something one hopes to be wrong about.
Lots of options now. Thanks, and thanks to Andrea for agw!
(and to Werner for doing so much testing of it).

If you wish to play with agw.aui, I would suggest you to update your
copy of wx.lib.agw using the SVN version of it. I have fixed many bugs
and added new features in SVN. Moreover, any bug/misbehaviour you may
find will be directly comparable with the SVN version (easier for me
to deal with).

Andrea.

Hi Che,

2009/8/5 C M:

Hi Che,

Thanks, Werner, it does help. First, it finally prompted me to
upgrade to 2.8.10, and I am really pleasantly surprised to see
that AUI works on a panel. I have some small problems with
it for now, but will look at it more. I have also put it as a page
of a regular wx.Notebook and it worked great--it's nice when
one is wrong about something one hopes to be wrong about.
Lots of options now. Thanks, and thanks to Andrea for agw!
(and to Werner for doing so much testing of it).

If you wish to play with agw.aui, I would suggest you to update your
copy of wx.lib.agw using the SVN version of it. I have fixed many bugs
and added new features in SVN. Moreover, any bug/misbehaviour you may
find will be directly comparable with the SVN version (easier for me
to deal with).

Andrea.

Good point, thanks. This is still the current SVN address, correct?
http://svn.wxwidgets.org/viewvc/wx/wxPython/3rdParty/AGW/

To view the files, yes. To checkout a copy of them, you should use:

http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/

(with "viewc" replaced with "svn").

I haven't used SVN much (at all? I have used CVS). I can just check
out the whole wx.lib.agw and replace my folder of that in the wx folder,
right?

Yes, this is what I do :slight_smile:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Tue, Aug 4, 2009 at 5:16 PM, Andrea Gavana<andrea.gavana@gmail.com> wrote:

2009/8/3 C M <cmpython@gmail.com>: