Changeset 4534
- Timestamp:
- 09/28/08 13:47:36 (2 months ago)
- Files:
-
- trunk/ide/ClassDesigner.py (modified) (3 diffs)
- trunk/ide/ClassDesignerComponents.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ide/ClassDesigner.py
r4509 r4534 1109 1109 code = pgDct.get("code", {}) 1110 1110 propDefs = pgDct.get("properties", {}) 1111 # Remove any unneeded properties 1112 pgDct.pop("sizerInfo", None) 1113 pgDct.pop("Width", None) 1114 pgDct.pop("Height", None) 1111 1115 try: 1112 1116 imp, clsname = nm.rsplit(".", 1) … … 1129 1133 mixClass = self.getControlClass(cls) 1130 1134 wizpage = frm.append(mixClass(pp, attProperties=atts)) 1135 # wizpage.AlwaysResetSizer = True 1131 1136 for mthd, cd in code.items(): 1132 1137 if not self._codeDict.get(wizpage): … … 1147 1152 # The slot count before adding controls should be 4. 1148 1153 # Add any additional slots. 1149 newslots = slots - 41154 newslots = 4 - len(wizSizer.Children) 1150 1155 if newslots > 0: 1151 1156 wizSizer.SlotCount += newslots 1152 1157 self._srcObj = wizpage.Sizer.ChildWindows[-1] 1153 1158 self.recreateChildren(wizpage, kids, wizpage.Sizer, True, debug=1) 1159 # wizpage.iterateCall("layout", resetMin=True) 1154 1160 self._srcObj = saveSrc 1155 1161 trunk/ide/ClassDesignerComponents.py
r4388 r4534 147 147 continue 148 148 if isinstance(self, dabo.ui.dLabel) and prop in ("Width", "Height"): 149 # If the width/height is controlled by the sizer, don't save it. 150 csz = self.ControllingSizer 151 szornt = csz.Orientation 152 exp = csz.getItemProp(self, "Expand") 153 prptn = csz.getItemProp(self, "Proportion") 154 if szornt == "Horizontal": 155 if (prop == "Width") and (prptn > 0): 156 continue 157 elif (prop == "Height") and exp: 158 continue 159 elif szornt == "Vertical": 160 if (prop == "Width") and exp: 161 continue 162 elif (prop == "Height") and (prptn > 0): 163 continue 149 164 # Don't copy the size if AutoSize=True and the width is close to the default size. 150 165 if self.AutoResize:
