controls/DurationCellEditor.py
branchwxPython4
changeset 3305 ca11385ea5e9
parent 3303 0ffb41625592
child 3750 f62625418bff
equal deleted inserted replaced
3304:3d736248ab3b 3305:ca11385ea5e9
    96 
    96 
    97     def SetFocus(self):
    97     def SetFocus(self):
    98         self.Duration.SetFocus()
    98         self.Duration.SetFocus()
    99 
    99 
   100 
   100 
   101 class DurationCellEditor(wx.grid.PyGridCellEditor):
   101 class DurationCellEditor(wx.grid.GridCellEditor):
   102     '''
   102     '''
   103     Grid cell editor that uses DurationCellControl to display an edit button.
   103     Grid cell editor that uses DurationCellControl to display an edit button.
   104     '''
   104     '''
   105     def __init__(self, table, colname):
   105     def __init__(self, table, colname):
   106         wx.grid.PyGridCellEditor.__init__(self)
   106         wx.grid.GridCellEditor.__init__(self)
   107 
   107 
   108         self.Table = table
   108         self.Table = table
   109         self.Colname = colname
   109         self.Colname = colname
   110 
   110 
   111     def __del__(self):
   111     def __del__(self):