controls/LocationCellEditor.py
changeset 1540 cf1df00e6f86
parent 1536 3518d10487db
child 1550 deadfe7377e9
equal deleted inserted replaced
1539:8e5c03798abc 1540:cf1df00e6f86
   174         def EndEdit(self, row, col, grid, oldval):
   174         def EndEdit(self, row, col, grid, oldval):
   175             self.EndEditInternal(row, col, grid, oldval)
   175             self.EndEditInternal(row, col, grid, oldval)
   176     else:
   176     else:
   177         def EndEdit(self, row, col, grid):
   177         def EndEdit(self, row, col, grid):
   178             old_loc = self.Table.GetValueByName(row, 'Location')            
   178             old_loc = self.Table.GetValueByName(row, 'Location')            
   179             self.EndEditInternal(row, col, grid, oldval)
   179             self.EndEditInternal(row, col, grid, old_loc)
   180     
   180     
   181     def SetSize(self, rect):
   181     def SetSize(self, rect):
   182         self.CellControl.SetDimensions(rect.x + 1, rect.y,
   182         self.CellControl.SetDimensions(rect.x + 1, rect.y,
   183                                         rect.width, rect.height,
   183                                         rect.width, rect.height,
   184                                         wx.SIZE_ALLOW_MINUS_ONE)
   184                                         wx.SIZE_ALLOW_MINUS_ONE)