dabo Commit
Revision 4599
Date: 2008-10-24 15:25:22 -0700 (Fri, 24 Oct 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4599

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

Log:
Now that Maximize() checks for MDI, an AttributeError was happening in 
my dialog. Fixed.



Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py    2008-10-24 20:01:02 UTC (rev 4598)
+++ trunk/dabo/ui/uiwx/dFormMixin.py    2008-10-24 22:25:22 UTC (rev 4599)
@@ -734,7 +734,11 @@
 
        def _getMDI(self):
                ## self._mdi defined in dForm.py/dFormMain.py:
-               return self._mdi
+               try:
+                       return self._mdi
+               except AttributeError:
+                       # dDialog, for instance
+                       return False
 
 
        def _getMenuBar(self):




_______________________________________________
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