]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-11/basicflexgridsizer.py
2 from blockwindow
import BlockWindow
4 labels
= "one two three four five six seven eight nine".split()
6 class TestFrame(wx
.Frame
):
8 wx
.Frame
.__init
__(self
, None, -1, "FlexGridSizer")
9 sizer
= wx
.FlexGridSizer(rows
=3, cols
=3, hgap
=5, vgap
=5)
11 bw
= BlockWindow(self
, label
=label
)
13 center
= self
.FindWindowByName("five")
14 center
.SetMinSize((150,50))
18 app
= wx
.PySimpleApp()