dabo Commit
Revision 2746
Date: 2007-01-24 11:30:58 -0800 (Wed, 24 Jan 2007)
Author: Paul

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

Log:
The double-activate problem apparently got fixed in wx2.7/2.8 resulting in the 
activate code not firing. Fixed.

Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py    2007-01-24 01:47:10 UTC (rev 2745)
+++ trunk/dabo/ui/uiwx/dFormMixin.py    2007-01-24 19:30:58 UTC (rev 2746)
@@ -17,8 +17,9 @@
                        src=None, attProperties=None, *args, **kwargs):
 
                # Windows sends two Activate events, and one of them is too 
early.
-               # Skip the first one
-               self._skipActivate = (self.Application.Platform == "Win")
+               # Skip the first one. Update: apparently on wx27 and above the 
+               # double-activation is no longer an issue.
+               self._skipActivate = (wx.VERSION < (2,7) and 
self.Application.Platform == "Win")
 
                # Extract the connection name, if any
                self._cxnFile = self._extractKey((properties, attProperties, 
kwargs), 




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

Reply via email to