wx.AuiManager and Center() info

Hi All,

I have a wxPython 2.8.0.1 app based on AuiManager
I'd like to know why, if I create panes with Center() direction, their
captions result not selectable (so I cannot move these panes) while the other
4 directions behave as expected.

I tried to set also Moveable and Floatable to True but nothing changed.

The panes are created in this way:

        self._mgr.AddPane(ed, wx.aui.AuiPaneInfo().BestSize(wx.Size(w,h)).
                      Name(xxx).Caption(xxx).DestroyOnClose(True).
Center().CloseButton(True).MaximizeButton(True))

thank you
Massimo
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

Hi Massimo,

I have a wxPython 2.8.0.1 app based on AuiManager
I'd like to know why, if I create panes with Center() direction, their
captions result not selectable (so I cannot move these panes) while the other
4 directions behave as expected.

As far as I know, Center()ed panes represents the main part of the GUI
and can not be moved, floated or whatever. I may be wrong, but the
question is, what would be in the center when no pane was docked
there? Perhaps empty space? (quote from Benjamin Williams, wxAUI
co-author).

Andrea.

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

Hi Andrea,

Alle 16:20, lunedì 29 gennaio 2007, Andrea Gavana ha scritto:

Hi Massimo,

> I have a wxPython 2.8.0.1 app based on AuiManager
> I'd like to know why, if I create panes with Center() direction, their
> captions result not selectable (so I cannot move these panes) while the
> other 4 directions behave as expected.

As far as I know, Center()ed panes represents the main part of the GUI
and can not be moved, floated or whatever. I may be wrong, but the
question is, what would be in the center when no pane was docked
there? Perhaps empty space? (quote from Benjamin Williams, wxAUI
co-author).

what I desire is to be able to resize the center panes when more than one is
opened, while now the panes are both not moveable (and this could be ok,
since it's not terribly useful to move them) but neither resizable, despite
the fact that AuiPaneInfo says the opposite

Ciao
Massimo

Andrea.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Chiacchiera con i tuoi amici in tempo reale!
Yahoo fa parte della famiglia di brand Yahoo.

Hi Massimo,

what I desire is to be able to resize the center panes when more than one is
opened, while now the panes are both not moveable (and this could be ok,
since it's not terribly useful to move them) but neither resizable, despite
the fact that AuiPaneInfo says the opposite

I have no idea why it doesn't work. I have tried with a simple example
and indeed it's impossible to resize or to undock them. Curiously
enough, it works with PyAUI (development version). Maybe Robin can
share some comments on this.
Sorry if it doesn't help that much.

Andrea.

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

Andrea Gavana wrote:

Hi Massimo,

what I desire is to be able to resize the center panes when more than one is
opened, while now the panes are both not moveable (and this could be ok,
since it's not terribly useful to move them) but neither resizable, despite
the fact that AuiPaneInfo says the opposite

I have no idea why it doesn't work. I have tried with a simple example
and indeed it's impossible to resize or to undock them. Curiously
enough, it works with PyAUI (development version). Maybe Robin can
share some comments on this.

Sorry, I don't know either, however it's always been my impression that the center pane is not floatable, and that docking rules for the other panes are always relative to the center pane.

When you say it is also not resizable do you mean that manipulating the sashes between it and the neighboring panes does not result in it being resized? It's not behaving that way for me, so if yours does please tell us what is in your center pane? Does it have any sizers or min/max sizes set?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Alle 21:25, lunedì 29 gennaio 2007, Robin Dunn ha scritto:

Andrea Gavana wrote:
> Hi Massimo,
>
>> what I desire is to be able to resize the center panes when more than
>> one is
>> opened, while now the panes are both not moveable (and this could be ok,
>> since it's not terribly useful to move them) but neither resizable,
>> despite
>> the fact that AuiPaneInfo says the opposite
>
> I have no idea why it doesn't work. I have tried with a simple example
> and indeed it's impossible to resize or to undock them. Curiously
> enough, it works with PyAUI (development version). Maybe Robin can
> share some comments on this.

Sorry, I don't know either, however it's always been my impression that
the center pane is not floatable, and that docking rules for the other
panes are always relative to the center pane.

When you say it is also not resizable do you mean that manipulating the
sashes between it and the neighboring panes does not result in it being
resized?

the sashes between Centered and non-Centered panes works as expected, while
between Centered panes cannot move.

It's not behaving that way for me, so if yours does please
tell us what is in your center pane?

the center panes contain a AuiNotebook with 2 pages: the first one contains
another auinotebook, while the other an OGL window (see attachment)
If I open more panes like that, they will be stacked vertically, with no way
no resize them.

>Does it have any sizers or min/max

sizes set?

Sure. Nested Vboxes and Hboxes. But if I place these panes in any other
direction, for instance Right, they resize as expected. Obviously in the
center of the frame remains a hole, that is ugly to see.

Cheers
Massimo

giuseppe massimo bertani wrote:

Alle 21:25, lunedì 29 gennaio 2007, Robin Dunn ha scritto:

When you say it is also not resizable do you mean that manipulating the
sashes between it and the neighboring panes does not result in it being
resized?

the sashes between Centered and non-Centered panes works as expected, while between Centered panes cannot move.

Go ahead and submit a bug report about this. When I tried it yesterday my app was actually loading a saved perspective, not using the pane attributes I had just set, so when resizing worked it was just because it still wasn't using multiple center panes. Once I deleted the saved perspective to force it to start out with the new programmed settings then I also see the inability to drag the sash between multiple center panes.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!