-
- # Layout controls on panel:
- vs = wx.BoxSizer( wx.VERTICAL )
-
- box1_title = wx.StaticBox( panel, -1, "Group 1" )
- box1 = wx.StaticBoxSizer( box1_title, wx.VERTICAL )
- grid1 = wx.FlexGridSizer( 0, 2, 0, 0 )
-
- for radio, text in self.group1_ctrls:
- grid1.AddWindow( radio, 0, wx.ALIGN_CENTRE|wx.LEFT|wx.RIGHT|wx.TOP, 5 )
- grid1.AddWindow( text, 0, wx.ALIGN_CENTRE|wx.LEFT|wx.RIGHT|wx.TOP, 5 )
-
- box1.AddSizer( grid1, 0, wx.ALIGN_CENTRE|wx.ALL, 5 )
- vs.AddSizer( box1, 0, wx.ALIGN_CENTRE|wx.ALL, 5 )
-
- box2_title = wx.StaticBox( panel, -1, "Group 2" )
- box2 = wx.StaticBoxSizer( box2_title, wx.VERTICAL )
- grid2 = wx.FlexGridSizer( 0, 2, 0, 0 )
-