dabo Commit
Revision 4546
Date: 2008-10-04 08:21:32 -0700 (Sat, 04 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4546
Changed:
U trunk/ide/ClassDesigner.py
Log:
Found another place where it was assumed that an object had ControllingSizer
and ControllingSizerItem properties, and wrapped that to catch the
AttributeError.
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2008-10-04 15:20:14 UTC (rev 4545)
+++ trunk/ide/ClassDesigner.py 2008-10-04 15:21:32 UTC (rev 4546)
@@ -971,8 +971,12 @@
obj.setPropertiesFromAtts({"Orientation": ornt})
if splt:
dabo.ui.setAfter(obj, "Split",
True)
- sz = obj.ControllingSizer
- itm = obj.ControllingSizerItem
+ try:
+ sz = obj.ControllingSizer
+ itm = obj.ControllingSizerItem
+ except AttributeError:
+ sz = None
+ itm = None
if sz is not None and itm is not None:
sz.setItemProps(itm, sizerInfoDict)
if classID:
_______________________________________________
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]