plese suggest good tutorial for sizers.
Jeffrey Barish
jeff_barish at earthlink.net
Mon Jan 8 09:41:27 PST 2007
Andrea Gavana wrote:
> If you want to specify a minimum height beyond which the frame
> shouldn't shrink, you could add this to your __init__ method in the
> MyFrame class:
>
> mainSizer = wx.BoxSizer(wx.VERTICAL)
> mainSizer.Add(self.panel, 1, wx.EXPAND)
> self.SetSizer(mainSizer)
> self.SetSizeHints(-1, 300)
> mainSizer.Layout()
> self.Fit()
>
> HTH.
>
> Andrea.
Can you comment on why you run Layout on the sizer rather than its container
(self)? Also, since you aren't setting a maxsize, isn't your call to
SetSizeHints equivalent to a call to SetMinSize?
--
Jeffrey Barish
More information about the wxpython-users
mailing list