dabo Commit
Revision 4575
Date: 2008-10-21 18:38:26 -0700 (Tue, 21 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4575
Changed:
U trunk/dabo/lib/DesignerXmlConverter.py
Log:
Fixed a problem when running designs containing unfilled LayoutPanels. The
default settings of the panel were being ignored, resulting in a zero-sized
panel in the runtime.
Diff:
Modified: trunk/dabo/lib/DesignerXmlConverter.py
===================================================================
--- trunk/dabo/lib/DesignerXmlConverter.py 2008-10-22 00:01:02 UTC (rev
4574)
+++ trunk/dabo/lib/DesignerXmlConverter.py 2008-10-22 01:38:26 UTC (rev
4575)
@@ -379,6 +379,20 @@
spc = atts.get("Spacing", "10")
spcObjDef = spcObjDef % locals()
self.classText += LINESEP + self._spcText %
locals()
+
+ elif clsname == "LayoutPanel":
+ if isinstance(szInfo, basestring):
+ szInfo = eval(szInfo)
+ defSizerInfo = {"Expand": True, "Proportion":
1}
+ defSizerInfo.update(szInfo)
+ szInfo = defSizerInfo
+ if self.CreateDesignerControls:
+ superName = "getControlClass(%s.%s)" %
(modpath, "dPanel")
+ else:
+ superName = "%s.%s" % (modpath,
"dPanel")
+ attPropString = ", attProperties=%s" % cleanAtts
+ self.classText += LINESEP +
self._createControlText % locals()
+
else:
# This isn't a sizer; it's a control
attPropString = ""
_______________________________________________
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]