dabo Commit
Revision 7007
Date: 2011-12-07 14:38:15 -0800 (Wed, 07 Dec 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/7007
Changed:
U trunk/dabo/ui/uiwx/dTextBoxMixin.py
Log:
Resolved an inconsistency that's been bugging me for awhile. Dabo
was defaulting SelectOnEntry to False for text controls, but not
really.
Windows and Linux were still selecting all text when the control
was navigated to, but Mac was not.
This commit defaults the property to True, so that at least by
default the property behaves as it should. We may need to look
further into this to make setting it to False work correctly on
Windows and Linux though, since apparently there's something in
the underlying platform toolkits that perform this automatically.
Diff:
Modified: trunk/dabo/ui/uiwx/dTextBoxMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dTextBoxMixin.py 2011-12-05 19:35:12 UTC (rev 7006)
+++ trunk/dabo/ui/uiwx/dTextBoxMixin.py 2011-12-07 22:38:15 UTC (rev 7007)
@@ -321,7 +321,9 @@
try:
return self._SelectOnEntry
except AttributeError:
- return False
+ ret = not isinstance(self, dabo.ui.dEditBox)
+ self._SelectOnEntry = ret
+ return ret
def _setSelectOnEntry(self, val):
self._SelectOnEntry = bool(val)
_______________________________________________
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]