daboide Commit
Revision 858
Date: 2007-06-22 04:58:45 -0700 (Fri, 22 Jun 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/daboide/changeset/858
Changed:
U trunk/ClassDesignerComponents.py
Log:
This fixes ticket [1026], where the error log message "Nested sizer missing its
ControllingSizer" was always printed at startup.
Diff:
Modified: trunk/ClassDesignerComponents.py
===================================================================
--- trunk/ClassDesignerComponents.py 2007-06-07 17:07:41 UTC (rev 857)
+++ trunk/ClassDesignerComponents.py 2007-06-22 11:58:45 UTC (rev 858)
@@ -961,7 +961,11 @@
ret = []
kids = self.Children
if isinstance(self, dabo.ui.dSizer):
- if isinstance(self.Parent, dlgs.WizardPage):
+ try:
+ szParent = self.Parent
+ except RuntimeError:
+ szParent = None
+ if isinstance(szParent, dlgs.WizardPage):
# Skip the built-in title and separator line.
# The sizer contains other things, such as
spacers, so we need
# to find the sizeritem that matches an actual
child object.
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]