controls/DurationCellEditor.py
branchpython3
changeset 3765 88fe6fc9fd38
parent 3750 f62625418bff
equal deleted inserted replaced
3764:d92c1a3dafa7 3765:88fe6fc9fd38
   106         wx.grid.GridCellEditor.__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):
       
   112         self.CellControl = None
       
   113 
       
   114     def Create(self, parent, id, evt_handler):
   111     def Create(self, parent, id, evt_handler):
   115         self.CellControl = DurationCellControl(parent)
   112         self.CellControl = DurationCellControl(parent)
   116         self.SetControl(self.CellControl)
   113         self.SetControl(self.CellControl)
   117         if evt_handler:
   114         if evt_handler:
   118             self.CellControl.PushEventHandler(evt_handler)
   115             self.CellControl.PushEventHandler(evt_handler)