Changeset 3056
- Timestamp:
- 04/12/07 11:23:47 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/NateBranch/dabo/ui/uiwx/dTextBoxMixin.py
r3055 r3056 580 580 dabo.ui.callAfter(self._checkForceCase) 581 581 582 if self._inTextLength: 583 # Value is changing internally. Don't update the oldval 584 # setting or change the type; just set the value. 585 self.SetValue(val) 586 return 587 else: 588 dabo.ui.callAfter(self._checkTextLength) 589 582 590 strVal = self.getStringValue(val) 583 591 _oldVal = self._oldVal = self.Value … … 598 606 else: 599 607 self._properties["Value"] = val 600 601 self._checkTextLength()602 608 603 609 branches/NateBranch/tests/unitTests/ui/UIwx/Test_dTextBox.py
r3049 r3056 22 22 #NOTE: It would be really good if we could extract all of this out so we don't have 23 23 # to do it for every single widget test 24 App = None 25 testForm = None 24 App = dabo.dApp() 25 App.setup() 26 27 testForm = dabo.ui.dForm() 26 28 27 29 #Set up a base class that handle the set up and tear down of a semi-persistant test fixture … … 165 167 def testBadDatetimeInput(self): 166 168 """When dataType == datetime.datetime, Passing a string value not in ISO 8601 format causes convertStringValueToDataType to raise a ValueError.""" 167 testValues = ["4/10/ 07", "2007-4-10", "2007-04-1", "Not a date", "2007-04-10T1:12:12.32",169 testValues = ["4/10/2007", "2007-4-10", "2007-04-1", "Not a date", "2007-04-10T1:12:12.32", 168 170 "2007-04-10T1:12:12", "2007-04-10T1:12:12", "2007-04-10T12:1:12", "2007-04-10T12:12:1"] 169 171 for parameter in testValues:
