dabo Commit
Revision 6864
Date: 2011-09-30 16:46:30 -0700 (Fri, 30 Sep 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6864

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

Log:
If a user changed a value in a bound textbox in a dialog, then pressed "enter"
to fire the Okay button, the value wouldn't be flushed by the time the appdev's
runOK() method ran. This fixes it.


Diff:
Modified: trunk/dabo/ui/uiwx/dDialog.py
===================================================================
--- trunk/dabo/ui/uiwx/dDialog.py       2011-09-28 01:51:01 UTC (rev 6863)
+++ trunk/dabo/ui/uiwx/dDialog.py       2011-09-30 23:46:30 UTC (rev 6864)
@@ -400,6 +400,7 @@
        # old handler.
        def _onOK(self, evt):
                self.Accepted = True
+               self.activeControlValid()
                try:
                        self.onOK()
                except TypeError:
@@ -414,6 +415,7 @@
 
        def _onCancel(self, evt):
                self.Accepted = False
+               self.activeControlValid()
                try:
                        self.onCancel()
                except TypeError:



_______________________________________________
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