wx.aui MinSize

Hi,

in the sample attached the MinSize attribute of only one of the two panes (the left one) is honoured. If I change the second's pane location from Bottom to Right, then it works as expected. Am I doing something wrong or is this a bug?

Regards, Christian

here's the attachment finally.

sample.py (604 Bytes)

···

Hi,

in the sample attached the MinSize attribute of only one of the two
panes (the left one) is honoured. If I change the second's pane location
from Bottom to Right, then it works as expected. Am I doing something
wrong or is this a bug?

Regards, Christian

I’m not sure, but I think it is neither.

In your sample, if the second pane is set to Bottom, it is in fact on the bottom, and its minimum height (100) is being honored, while its width is automatically expanded to the full available width; keep in mind, its leftmost portion is being covered by the first pane, which has a layer set higher (2). If you set the minimum height something larger, you will see the second pane will grow taller.

If you set it to Right, it is on the right and its minimum width (180) is being honored, while its height is automatically expanded to the full available height.

Che

···

On Tue, Sep 11, 2012 at 9:25 PM, Christian K. ckkart@hoc.net wrote:

Hi,

in the sample attached the MinSize attribute of only one of the two panes (the left one) is honoured. If I change the second’s pane location from Bottom to Right, then it works as expected. Am I doing something wrong or is this a bug?

Thanks for your comments. As I understand the use of Layer() might the reason for my observations. If you try the modified sample attached, where I avoided to use layers, you will see, that the min height of the lower pane is still not considered. How could I possibly fix this?

Regards, Christian

sample.py (611 Bytes)

···

Am 12.09.12 01:47, schrieb C M:

On Tue, Sep 11, 2012 at 9:25 PM, Christian K. <ckkart@hoc.net > <mailto:ckkart@hoc.net>> wrote:

    Hi,

    in the sample attached the MinSize attribute of only one of the two
    panes (the left one) is honoured. If I change the second's pane
    location from Bottom to Right, then it works as expected. Am I doing
    something wrong or is this a bug?

I'm not sure, but I think it is neither.

In your sample, if the second pane is set to Bottom, it is in fact on
the bottom, and its minimum height (100) is being honored, while its
width is automatically expanded to the full available width; keep in
mind, its leftmost portion is being covered by the first pane, which has
a layer set higher (2). If you set the minimum height something larger,
you will see the second pane will grow taller.

If you set it to Right, it is on the right and its minimum width (180)
is being honored, while its height is automatically expanded to the full
available height.

Hi,



in the sample attached the MinSize attribute of only one of the two

panes (the left one) is honoured. If I change the second's pane

location from Bottom to Right, then it works as expected. Am I doing

something wrong or is this a bug?

I’m not sure, but I think it is neither.

In your sample, if the second pane is set to Bottom, it is in fact on

the bottom, and its minimum height (100) is being honored, while its

width is automatically expanded to the full available width; keep in

mind, its leftmost portion is being covered by the first pane, which has

a layer set higher (2). If you set the minimum height something larger,

you will see the second pane will grow taller.

If you set it to Right, it is on the right and its minimum width (180)

is being honored, while its height is automatically expanded to the full

available height.

Thanks for your comments. As I understand the use of Layer() might the reason for my observations. If you try the modified sample attached, where I avoided to use layers, you will see, that the min height of the lower pane is still not considered. How could I possibly fix this?

I’m not sure. I can’t find a way to set the proportions of the panes other than BestSize() (which also doesn’t do it) or MinSize() as you tried… under MinSize(), by the way, the docs say:
“MinSize() sets the minimum size of the pane. Please note that this is only partially supported as of this writing.”

Perhaps that’s the issue? This seems like there should be an easy way to do this.

If not, you could try wx.AGW.AUI, a pure Python version of AUI by Andrea Gavana.

···

On Wed, Sep 12, 2012 at 8:40 AM, Christian K. ckkart@hoc.net wrote:

Am 12.09.12 01:47, schrieb C M:

On Tue, Sep 11, 2012 at 9:25 PM, Christian K. <ckkart@hoc.net > > mailto:ckkart@hoc.net> wrote:

Regards, Christian

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en