controls/DurationCellEditor.py
changeset 663 6ea5c76ea7bc
parent 657 b286a16162fc
child 714 131ea7f237b9
equal deleted inserted replaced
662:3c4e0d4f7a61 663:6ea5c76ea7bc
   138         old_duration = self.Table.GetValueByName(row, 'Interval')
   138         old_duration = self.Table.GetValueByName(row, 'Interval')
   139         changed = duration != old_duration
   139         changed = duration != old_duration
   140         if changed:
   140         if changed:
   141             self.Table.SetValueByName(row, 'Interval', duration)
   141             self.Table.SetValueByName(row, 'Interval', duration)
   142         self.CellControl.Disable()
   142         self.CellControl.Disable()
   143         return False
   143         return changed
   144 
   144 
   145     def SetSize(self, rect):
   145     def SetSize(self, rect):
   146         self.CellControl.SetDimensions(rect.x + 1, rect.y,
   146         self.CellControl.SetDimensions(rect.x + 1, rect.y,
   147                                         rect.width, rect.height,
   147                                         rect.width, rect.height,
   148                                         wx.SIZE_ALLOW_MINUS_ONE)
   148                                         wx.SIZE_ALLOW_MINUS_ONE)