[wxpython-users] Sizing Widgets in Sizers, and Sizing Frames based on the size of their content.

Timothy Grant timothy.grant at gmail.com
Fri May 2 09:46:20 PDT 2008


On Wed, Apr 16, 2008 at 2:04 PM, Robin Dunn <robin at alldunn.com> wrote:

> Timothy Grant wrote:
>
>  Thanks for the input, that explains a LOT. What kind of layout should I
> > use if I want the controls to take a fixed amount of space and the panel
> > Ecosystem Panel to be the variable amount of space?
> >
>
>
>       vbox.Add(self.ecosystem, 1, wx.EXPAND)
>       vbox.Add(self.controls, 0, wx.EXPAND)
>
> This means that self.controls will be fixed in the vertical dimension, and
> that self.ecosystem will take all the remaining vertical space.
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org  Java give you jitters?  Relax with wxPython!
>

I hate it when life and work gets in the way of my coding fun.

Thank you Robin. I appreciate the help.

-- =

Stand Fast,
tjg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200805=
02/9219f0a8/attachment-0001.htm


More information about the wxpython-users mailing list