170 self.CellControl.Disable() |
170 self.CellControl.Disable() |
171 return changed |
171 return changed |
172 |
172 |
173 if wx.VERSION >= (3, 0, 0): |
173 if wx.VERSION >= (3, 0, 0): |
174 def EndEdit(self, row, col, grid, oldval): |
174 def EndEdit(self, row, col, grid, oldval): |
175 self.EndEditInternal(row, col, grid, oldval) |
175 return 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, old_loc) |
179 return 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) |