Changeset 3281
- Timestamp:
- 07/26/07 15:29:42 (1 year ago)
- Files:
-
- trunk/dabo/dEvents.py (modified) (1 diff)
- trunk/dabo/ui/dDataControlMixinBase.py (modified) (2 diffs)
- trunk/dabo/ui/uiwx/dDataControlMixin.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/dEvents.py
r3222 r3281 784 784 appliesToClass = classmethod(appliesToClass) 785 785 786 class InteractiveChange(dEvent): 787 """Occurs when the user interactively changes the control's value.""" 788 def appliesToClass(eventClass, objectClass): 789 return issubclass(objectClass, dabo.ui.dDataControlMixin) 790 appliesToClass = classmethod(appliesToClass) 791 786 792 787 793 class Update(dEvent): trunk/dabo/ui/dDataControlMixinBase.py
r3231 r3281 17 17 self._designerMode = None 18 18 self._oldVal = None 19 self._userChanged = False 19 20 20 21 dabo.ui.dControlMixin.__init__(self, *args, **kwargs) … … 163 164 isChanged = False 164 165 oldVal = self._oldVal 166 167 if self._userChanged: 168 self.raiseEvent(dabo.dEvents.InteractiveChange, oldVal=oldVal) 169 self._userChanged = False 170 165 171 if oldVal is None and curVal is None: 166 172 # Could be changed and we just don't know it... trunk/dabo/ui/uiwx/dDataControlMixin.py
r3199 r3281 7 7 8 8 class dDataControlMixin(dDataControlMixinBase): 9 def _onWxHit(self, evt, *args, **kwargs): 10 self._userChanged = True ## set the dirty flag so that InteractiveChange can be raised. 11 super(dDataControlMixin, self)._onWxHit(evt, *args, **kwargs) 12 13 9 14 def select(self, position, length): 10 15 """ Select all text from <position> for <length> or end of string."""
