[wxPython] Problem with wxBoxSizer and wxDesigner

I'm trying to create a sizer with contents that can expand in the main
direction of the sizer. If I do it manually, I call wxBoxSizer.Add(...,
option = 1, ...), but how do I do this in wxDesigner?

(wxMSW, wxDesigner 2.7g)

/Jesper

···

--
Jesper Eskilson
Virtutech
http://www.virtutech.com

I'm trying to create a sizer with contents that can expand in the main
direction of the sizer. If I do it manually, I call wxBoxSizer.Add(...,
option = 1, ...), but how do I do this in wxDesigner?

Highlight the item that you want to expand and then select Element|Option
and change the setting from Fixed size to Stretch factor x. If there is
only one control in the sizer, Stretch factor 1 will cause it to fill the
available space. If more than one, you can share out the available space
between them by the appropriate choice of different factors for each.

Regards,

David Hughes
Forestfield Software Ltd
www.forestfield.co.uk

dfh@forestfield.co.uk (David Hughes) writes:

> I'm trying to create a sizer with contents that can expand in the main
> direction of the sizer. If I do it manually, I call wxBoxSizer.Add(...,
> option = 1, ...), but how do I do this in wxDesigner?

Highlight the item that you want to expand and then select Element|Option
and change the setting from Fixed size to Stretch factor x. If there is
only one control in the sizer, Stretch factor 1 will cause it to fill the
available space. If more than one, you can share out the available space
between them by the appropriate choice of different factors for each.

Ah. That's what the spinbutton is for.

Thanks.

/Jesper

···

--
Jesper Eskilson
Virtutech