dabo Commit
Revision 4087
Date: 2008-05-21 13:34:48 -0700 (Wed, 21 May 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4087
Changed:
U trunk/dabo/lib/DesignerXmlConverter.py
Log:
Fixed a bug that left out any sizer properties besides Orientation.
Diff:
Modified: trunk/dabo/lib/DesignerXmlConverter.py
===================================================================
--- trunk/dabo/lib/DesignerXmlConverter.py 2008-05-21 05:47:20 UTC (rev
4086)
+++ trunk/dabo/lib/DesignerXmlConverter.py 2008-05-21 20:34:48 UTC (rev
4087)
@@ -352,7 +352,15 @@
propString = "'%s',
Caption=\"%s\"" % (self._extractKey(atts, "Orientation", "H"),
self._extractKey(atts, "Caption", ""))
else:
- propString = "Orientation='%s'"
% self._extractKey(atts, "Orientation", "H")
+ for unneeded in ("SlotCount",
"classID"):
+ try:
+
atts.pop(unneeded)
+ except KeyError:
+ pass
+ if "Orientation" not in atts:
+ # Default to Horizontal
+ atts["Orientation"] =
"H"
+ propString = ",
".join(["%s='%s'" % (k,v) for k,v in atts.items()])
if self.CreateDesignerControls:
superName = clsname
else:
_______________________________________________
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]