wxSplitterWindow to fill up its avalible space

Tim Gahnström /Bladerman tim at bladerman.com
Thu Apr 3 21:12:02 CEST 2003

I have put a wxSplitterWindow in a wxBoxSizer together with a panel.
My problem is that I must set the splitterWindowsize by hand when I create

    wxSplitterWindow(self, -1, size=(300,300))

Otherwise it gets no size at all. If I just put two panels there instead,
they fill upp al avaliable space nicely and I am sure there is an easy way
to get the splitterWindow to do the same but I cannot seem find it.

I can add the splitterWindow with a large proportionparameter like this

    sizerBox.Add(splitterWin , 10)

I works somewhat, it makes the avalible space larger but it doesnt scale up
the splitterwindow. Must the scaling of the splitterWindow be done manually
in repaint or something?


More information about the Python-list mailing list