dabo Commit
Revision 6179
Date: 2010-10-31 16:07:14 -0700 (Sun, 31 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6179

Changed:
U   trunk/dabo/lib/DesignerClassConverter.py

Log:
Fixed incorrect handling of properties when running a design using dBorderSizer.


Diff:
Modified: trunk/dabo/lib/DesignerClassConverter.py
===================================================================
--- trunk/dabo/lib/DesignerClassConverter.py    2010-10-31 21:43:03 UTC (rev 
6178)
+++ trunk/dabo/lib/DesignerClassConverter.py    2010-10-31 23:07:14 UTC (rev 
6179)
@@ -517,14 +517,11 @@
                                                # Default to Horizontal
                                                atts["Orientation"] = "H"
                                        szType = atts["Orientation"]
+                                       for unneeded in ("SlotCount", 
"classID"):
+                                               atts.pop(unneeded, None)
+                                       propString = ", ".join(["%s='%s'" % 
(k,v) for k,v in atts.items()])
                                        if isBorderSizer:
                                                prnt = "currParent, "
-                                               propString = "'%s', 
Caption=\"%s\"" % (self._extractKey(atts, "Orientation", "H"),
-                                                               
self._extractKey(atts, "Caption", ""))
-                                       else:
-                                               for unneeded in ("SlotCount", 
"classID"):
-                                                       atts.pop(unneeded, None)
-                                               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]

Reply via email to