Changeset 3235
- Timestamp:
- 07/11/2007 01:25:58 PM (1 year ago)
- Files:
-
- branches/stable/dabo/ui/uiwx/dTextBox.py (modified) (1 diff)
- trunk/dabo/ui/uiwx/dTextBoxMixin.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/stable/dabo/ui/uiwx/dTextBox.py
r3054 r3235 477 477 self._lastDataType = type(val) 478 478 479 # Update the display no matter what: 480 self.SetValue(strVal) 479 # Update the display if it is different from what is already displayed 480 # (note that if we did it unconditionally, the user's selection could 481 # be reset, which isn't very nice): 482 if strVal != self.GetValue(): 483 self.SetValue(strVal) 481 484 482 485 if type(_oldVal) != type(val) or _oldVal != val: trunk/dabo/ui/uiwx/dTextBoxMixin.py
r3192 r3235 624 624 self._lastDataType = type(val) 625 625 626 # Update the display no matter what: 627 setter(strVal) 626 # Update the display if it is different from what is already displayed 627 # (note that if we did it unconditionally, the user's selection could 628 # be reset, which isn't very nice): 629 if strVal != self.GetValue(): 630 setter(strVal) 628 631 629 632 if type(_oldVal) != type(val) or _oldVal != val:
