dabo Commit
Revision 6174
Date: 2010-10-27 05:55:57 -0700 (Wed, 27 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6174

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

Log:
Jacek's patch for multiple event firing. #1333

Diff:
Modified: trunk/dabo/ui/uiwx/dMaskedTextBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dMaskedTextBox.py        2010-10-27 01:58:01 UTC (rev 
6173)
+++ trunk/dabo/ui/uiwx/dMaskedTextBox.py        2010-10-27 12:55:57 UTC (rev 
6174)
@@ -102,6 +102,12 @@
                return "".join(dict.fromkeys(codes).keys())
 
 
+       def _onWxHit(self, evt, *args, **kwargs):
+               # This fixes wx masked control issue firing multiple EVT_TEXT 
events. 
+               if self._value != self.Value:
+                       super(dMaskedTextBox, self)._onWxHit(evt, *args, 
**kwargs)
+
+
        # property get/set functions
        def _getFormat(self):
                return self._format



_______________________________________________
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