- text9 = wxStaticText( self, -1, """\
-Use this control to programmatically set
-the value of the above float control:""")
- number_combo = wxComboBox(self, -1, choices = [ '', '111', '222.22', '-3', '54321.666666666', '-1353.978',
- '1234567', '-1234567', '123456789', '-123456789.1',
- '1234567890.', '-1234567890.1' ])
-
- grid = wxFlexGridSizer( 0, 2, vgap=10, hgap = 5 )
- grid.Add( text1, 0, wxALIGN_LEFT )
- grid.Add( fraction, 0, wxALIGN_LEFT )
- grid.Add( text2, 0, wxALIGN_LEFT )
- grid.Add( code, 0, wxALIGN_LEFT )
- grid.Add( text3, 0, wxALIGN_LEFT )
- grid.Add( state, 0, wxALIGN_LEFT )
- grid.Add( text4, 0, wxALIGN_LEFT )
- grid.Add( ip_addr1, 0, wxALIGN_LEFT )
- grid.Add( text5, 0, wxALIGN_LEFT )
- grid.Add( ip_addr2, 0, wxALIGN_LEFT )
- grid.Add( text6, 0, wxALIGN_LEFT )
- grid.Add( ip_addr3, 0, wxALIGN_LEFT )
- grid.Add( text7, 0, wxALIGN_LEFT )
- grid.Add( intctrl, 0, wxALIGN_LEFT )
- grid.Add( text8, 0, wxALIGN_LEFT )
- grid.Add( self.floatctrl, 0, wxALIGN_LEFT )
- grid.Add( text9, 0, wxALIGN_LEFT )
- grid.Add( number_combo, 0, wxALIGN_LEFT )
-
- self.sizer.Add( grid, 0, wxALIGN_LEFT|wxALL, border=5 )
+ label_numselect = wx.StaticText( self, -1, """\
+<= Programmatically set the value
+ of the float entry ctrl:""")
+ numselect = wx.ComboBox(self, -1, choices = [ '', '111', '222.22', '-3', '54321.666666666', '-1353.978',
+ '1234567', '-1234567', '123456789', '-123456789.1',
+ '1234567890.', '-1234567890.1' ])
+
+ parens_check = wx.CheckBox(self, -1, "Use () to indicate negatives in above controls")
+
+
+
+ gridCombos = wx.FlexGridSizer( 0, 4, vgap=10, hgap = 10 )
+ gridCombos.Add( label_statecode, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( statecode, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( label_fraction, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( fraction, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( label_statename, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( statename, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( label_code, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( code, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( label_selector, 0, wx.ALIGN_LEFT)
+ hbox = wx.BoxSizer( wx.HORIZONTAL )
+ hbox.Add( self.list_selector, 0, wx.ALIGN_LEFT )
+ hbox.Add(wx.StaticText(self, -1, ' => '), 0, wx.ALIGN_LEFT)
+ hbox.Add( self.dynamicbox, 0, wx.ALIGN_LEFT )
+ gridCombos.Add( hbox, 0, wx.ALIGN_LEFT )
+
+ gridIpAddrs = wx.FlexGridSizer( 0, 4, vgap=10, hgap = 15 )
+ gridIpAddrs.Add( label_ipaddr1, 0, wx.ALIGN_LEFT )
+ gridIpAddrs.Add( ipaddr1, 0, wx.ALIGN_LEFT )
+ gridIpAddrs.Add( label_ipaddr2, 0, wx.ALIGN_LEFT )
+ gridIpAddrs.Add( ipaddr2, 0, wx.ALIGN_LEFT )
+ gridIpAddrs.Add( label_ipaddr3, 0, wx.ALIGN_LEFT )
+ gridIpAddrs.Add( ipaddr3, 0, wx.ALIGN_LEFT )
+
+ gridNumerics = wx.FlexGridSizer( 0, 4, vgap=10, hgap = 10 )
+ gridNumerics.Add( label_intctrl1, 0, wx.ALIGN_LEFT )
+ gridNumerics.Add( self.intctrl1, 0, wx.ALIGN_LEFT )
+ gridNumerics.Add( label_intctrl2, 0, wx.ALIGN_RIGHT )
+ gridNumerics.Add( self.intctrl2, 0, wx.ALIGN_LEFT )
+ gridNumerics.Add( label_floatctrl, 0, wx.ALIGN_LEFT )
+ gridNumerics.Add( self.floatctrl, 0, wx.ALIGN_LEFT )
+ gridNumerics.Add( label_numselect, 0, wx.ALIGN_RIGHT )
+ gridNumerics.Add( numselect, 0, wx.ALIGN_LEFT )
+
+ self.sizer.Add( labelMaskedCombos, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ self.sizer.Add( gridCombos, 0, wx.ALIGN_LEFT|wx.ALL, border=5 )
+ self.sizer.Add( wx.StaticLine(self, -1), 0, wx.EXPAND|wx.TOP|wx.BOTTOM, border=8 )
+ self.sizer.Add( labelIpAddrs, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ self.sizer.Add( gridIpAddrs, 0, wx.ALIGN_LEFT|wx.ALL, border=5 )
+ self.sizer.Add( wx.StaticLine(self, -1), 0, wx.EXPAND|wx.TOP|wx.BOTTOM, border=8 )
+ self.sizer.Add( labelNumerics, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ self.sizer.Add( gridNumerics, 0, wx.ALIGN_LEFT|wx.ALL, border=5 )
+ self.sizer.Add( parens_check, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+