controls/LocationCellEditor.py
changeset 1767 c74815729afd
parent 1745 f9d32913bad4
child 1768 691083b5682a
equal deleted inserted replaced
1766:c1e5b9f19483 1767:c74815729afd
   180             old_loc = self.Table.GetValueByName(row, 'Location')
   180             old_loc = self.Table.GetValueByName(row, 'Location')
   181             return self.EndEditInternal(row, col, grid, old_loc)
   181             return self.EndEditInternal(row, col, grid, old_loc)
   182 
   182 
   183     def SetSize(self, rect):
   183     def SetSize(self, rect):
   184         self.CellControl.SetDimensions(rect.x + 1, rect.y,
   184         self.CellControl.SetDimensions(rect.x + 1, rect.y,
   185                                         rect.width, rect.height,
   185                                        rect.width, rect.height,
   186                                         wx.SIZE_ALLOW_MINUS_ONE)
   186                                        wx.SIZE_ALLOW_MINUS_ONE)
   187 
   187 
   188     def Clone(self):
   188     def Clone(self):
   189         return LocationCellEditor(self.Table, self.Controller)
   189         return LocationCellEditor(self.Table, self.Controller)