dabo Commit
Revision 5984
Date: 2010-09-09 16:08:33 -0700 (Thu, 09 Sep 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5984

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

Log:
Added handling in __onWxGotFocus() for the case where self.Form is None.


Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2010-09-09 19:54:48 UTC (rev 5983)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2010-09-09 23:08:33 UTC (rev 5984)
@@ -554,7 +554,11 @@
 
                
        def __onWxGotFocus(self, evt):
-               self.Form._controlGotFocus(self)
+               try:
+                       self.Form._controlGotFocus(self)
+               except AttributeError:
+                       # 'Form' is None
+                       pass
                self._pushStatusText()
                if isinstance(self, dabo.ui.dGrid):
                        ## Continuation of ugly workaround for grid focus 
event. Only raise the



_______________________________________________
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