dabo Commit
Revision 5444
Date: 2009-09-29 17:07:03 -0700 (Tue, 29 Sep 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5444

Changed:
U   trunk/dabo/ui/uiwx/dTextBoxMixin.py

Log:
r5431 caused a recursion error in one of my apps. As the updateStringDisplay()
wasn't being called for a long time, I've commented it out and added some
notes.


Diff:
Modified: trunk/dabo/ui/uiwx/dTextBoxMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dTextBoxMixin.py 2009-09-29 23:15:01 UTC (rev 5443)
+++ trunk/dabo/ui/uiwx/dTextBoxMixin.py 2009-09-30 00:07:03 UTC (rev 5444)
@@ -640,7 +640,13 @@
                        try:
                                convertedVal = 
self.convertStringValueToDataType(strVal, dataType)
                                if self.getStringValue(convertedVal) != 
self.GetValue():
-                                       self._updateStringDisplay()
+                                       pass
+                                       ## pkm, for a long time, we had:
+                                       ##  self._updateStringDisplay  (without 
the ())
+                                       ## and everything seemed to work. Then 
we added the () in r5431 and
+                                       ## I started seeing recursion problems. 
I'm commenting it out but if
+                                       ## needed, we should experiment with:
+                                       
#dabo.ui.callAfter(self._updateStringDisplay)
                        except ValueError:
                                # It couldn't convert; return the previous 
value.
                                convertedVal = self._value




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to