--- a/controls/LocationCellEditor.py Tue Oct 04 17:43:30 2016 +0300
+++ b/controls/LocationCellEditor.py Tue Oct 04 18:01:08 2016 +0300
@@ -161,15 +161,22 @@
self.CellControl.SetVarType(self.Table.GetValueByName(row, 'Type'))
self.CellControl.SetFocus()
- def EndEdit(self, row, col, grid):
+ def EndEditInternal(self, row, col, grid, old_loc): loc = self.CellControl.GetValue()
- old_loc = self.Table.GetValueByName(row, 'Location')
self.Table.SetValueByName(row, 'Location', loc)
self.Table.SetValueByName(row, 'Type', self.CellControl.GetVarType())
self.CellControl.Disable()
+ if wx.VERSION >= (3, 0, 0): + def EndEdit(self, row, col, grid, oldval): + self.EndEditInternal(row, col, grid, oldval) + def EndEdit(self, row, col, grid): + old_loc = self.Table.GetValueByName(row, 'Location') + self.EndEditInternal(row, col, grid, oldval) self.CellControl.SetDimensions(rect.x + 1, rect.y,