dabo Commit
Revision 4106
Date: 2008-06-01 04:58:26 -0700 (Sun, 01 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4106
Changed:
U trunk/ide/ClassDesignerComponents.py
Log:
Added some code to prevent issues that were popping up with sizers that had
DefaultSpacing set to a positive value.
Diff:
Modified: trunk/ide/ClassDesignerComponents.py
===================================================================
--- trunk/ide/ClassDesignerComponents.py 2008-05-30 20:32:01 UTC (rev
4105)
+++ trunk/ide/ClassDesignerComponents.py 2008-06-01 11:58:26 UTC (rev
4106)
@@ -942,6 +942,7 @@
class LayoutSizerMixin(LayoutSaverMixin):
def __init__(self, *args, **kwargs):
+ self.isDesignerSizer = True
super(LayoutSizerMixin, self).__init__(*args, **kwargs)
@@ -1032,7 +1033,10 @@
pos = 1
else:
pos = 0
- spc = kidItem.Spacing
+ try:
+ spc = kidItem.Spacing
+ except AttributeError:
+ spc = 0
kidDict = {"name" : "Spacer",
"attributes" : {"size" : spc, "Name" :
"spacer"},
"cdata" : "",
_______________________________________________
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]