Changeset 3056

Show
Ignore:
Timestamp:
04/12/07 11:23:47 (2 years ago)
Author:
nate
Message:

Modified the Value setter on dTextBoxMixin to reflect the changes I made in dTextBoxMixinBase.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/NateBranch/dabo/ui/uiwx/dTextBoxMixin.py

    r3055 r3056  
    580580                dabo.ui.callAfter(self._checkForceCase) 
    581581             
     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             
    582590            strVal = self.getStringValue(val) 
    583591            _oldVal = self._oldVal = self.Value 
     
    598606        else: 
    599607            self._properties["Value"] = val 
    600          
    601         self._checkTextLength() 
    602608     
    603609     
  • branches/NateBranch/tests/unitTests/ui/UIwx/Test_dTextBox.py

    r3049 r3056  
    2222#NOTE:  It would be really good if we could extract all of this out so we don't have 
    2323#       to do it for every single widget test 
    24 App = None 
    25 testForm = None 
     24App = dabo.dApp() 
     25App.setup() 
     26 
     27testForm = dabo.ui.dForm() 
    2628 
    2729#Set up a base class that handle the set up and tear down of a semi-persistant test fixture 
     
    165167    def testBadDatetimeInput(self): 
    166168        """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", 
    168170            "2007-04-10T1:12:12", "2007-04-10T1:12:12", "2007-04-10T12:1:12", "2007-04-10T12:12:1"] 
    169171        for parameter in testValues: