dabo Commit
Revision 1880
Date: 2006-01-30 17:28:06 -0800 (Mon, 30 Jan 2006)
Author: paul

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

Log:
Commented out a spurious self.SetFocus() call in the closing of forms, as it 
was resulting in an extra deactivate/activate cycle on Windows.

Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py    2006-01-30 16:13:18 UTC (rev 1879)
+++ trunk/dabo/ui/uiwx/dFormMixin.py    2006-01-31 01:28:06 UTC (rev 1880)
@@ -405,10 +405,17 @@
                
                app = self.Application
 
+               self._isClosed = True
+
                # On the Mac, this next line prevents Bus Errors when closing a 
form.
                self.Visible = False    
-               self._isClosed = True
-               self.SetFocus()
+
+               # pkm: Not sure about this SetFocus() call, but there may have 
been a 
+               #      good reason. On Windows, though, it results in an extra 
cycle
+               #      of deactivate/activate, and it doesn't seem right that 
this 
+               #      would be needed, so I'm commenting it out.
+               #self.SetFocus()
+
                if app is not None:
                        try:
                                self.Application.uiForms.remove(self)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to