[wxPython-users] BoxSizer or GridSizer for laying out a form?
Kevin Grover
kogrover at gmail.com
Fri Sep 29 16:35:13 PDT 2006
look at FlexGridSizer
and its SetGrowableColumn method (use it to set the data display/entry
columns to be growable and then the unit will scale as expected when the
window size changes)
- KO
On 9/29/06, John Salerno <johnjsal at nospamgmail.com> wrote:
>
> If I want a data entry form with labels on the left and text boxes on
> the right, such as:
>
> First Name: ___________
> Last Name: ___________
>
> etc.
>
> is it better to use a grid or a box sizer? I just tried a grid sizer but
> it has the effect of spreading everything out across the whole frame.
> (I'm using wx.Notebook, so really the sizer is on panel which is on a
> notebook which is on a panel which is on the main frame, if that matters.)
>
> Or is it better to use nested box sizers to line up everything? Does
> this give you more control? This was my first instinct, but the grid
> seems perfect for this type of layout.
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200609=
29/d5e4e841/attachment.htm
More information about the wxpython-users
mailing list