[wxPython-users] More trouble with sizers
Werner F. Bruhin
werner.bruhin at free.fr
Sat Jul 28 03:47:47 PDT 2007
Hi Alun,
Alun Griffiths wrote:
> Hi
>
> I have a simple input form with some controls including a
> wxGenericDirCtrl. I would like the window to resize so that only the
> wxGenericDirCtrl expands when the window size changes. Code so far is
> given below, but nothing resizes when I change the window size. Also,
> is there any way of adding extra space to the left and top of the
> controls without adding a row/column to the sub-sizers?
You missed a couple of AddGrowableNnn, see below.
rhsSizer.Add(dirLabel, 0)
rhsSizer.Add(self.dirDlg, 1, wx.EXPAND)
rhsSizer.AddGrowableRow(1, 1)
rhsSizer.AddGrowableCol(0, 1)
frmSizer.Add(lhsSizer, 0)
frmSizer.Add(rhsSizer, 1, wx.EXPAND)
frmSizer.AddGrowableCol(1, 1)
frmSizer.AddGrowableRow(0, 1)
Werner
More information about the wxpython-users
mailing list