equal
deleted
inserted
replaced
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) |