+ hbox = wx.BoxSizer( wx.HORIZONTAL )
+ hbox.Add( grid, 0, wx.ALIGN_LEFT|wx.ALL, 15 )
+ hbox.Add( buttonbox, 0, wx.ALIGN_RIGHT|wx.BOTTOM, 20 )
+
+
+ box_label = wx.StaticBox( self, -1, "Bounds Control" )
+ boundsbox = wx.StaticBoxSizer( box_label, wx.HORIZONTAL )
+ self.set_bounds = wx.CheckBox( self, -1, "Set time bounds:" )
+
+ minlabel = wx.StaticText( self, -1, "minimum time:" )
+ self.min = timectl.TimeCtrl( self, -1, name="min", display_seconds = False )
+ self.min.Enable( False )
+
+ maxlabel = wx.StaticText( self, -1, "maximum time:" )
+ self.max = timectl.TimeCtrl( self, -1, name="max", display_seconds = False )
+ self.max.Enable( False )
+
+ self.limit_check = wx.CheckBox( self, -1, "Limit control" )
+
+ label = wx.StaticText( self, -1, "Resulting time control:" )
+ self.target_ctrl = timectl.TimeCtrl( self, -1, name="new" )
+
+ grid2 = wx.FlexGridSizer( 0, 2, 0, 0 )
+ grid2.Add( (20, 0), 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ grid2.Add( (20, 0), 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+
+ grid2.Add( self.set_bounds, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ grid3 = wx.FlexGridSizer( 0, 2, 5, 5 )
+ grid3.Add(minlabel, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL )
+ grid3.Add( self.min, 0, wx.ALIGN_LEFT )
+ grid3.Add(maxlabel, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL )
+ grid3.Add( self.max, 0, wx.ALIGN_LEFT )
+ grid2.Add(grid3, 0, wx.ALIGN_LEFT )
+
+ grid2.Add( self.limit_check, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ grid2.Add( (20, 0), 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+
+ grid2.Add( (20, 0), 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ grid2.Add( (20, 0), 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ grid2.Add( label, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
+ grid2.Add( self.target_ctrl, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+ boundsbox.Add(grid2, 0, wx.ALIGN_CENTER|wx.EXPAND|wx.ALL, 5)
+
+ vbox = wx.BoxSizer( wx.VERTICAL )
+ vbox.Add( (20, 20) )
+ vbox.Add( hbox, 0, wx.ALIGN_LEFT|wx.ALL, 5)
+ vbox.Add( boundsbox, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
+
+
+ outer_box = wx.BoxSizer( wx.VERTICAL )
+ outer_box.Add( vbox, 0, wx.ALIGN_LEFT|wx.ALL, 5)