dabo Commit
Revision 4474
Date: 2008-08-27 17:48:02 -0700 (Wed, 27 Aug 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4474
Changed:
U trunk/ide/ClassDesigner.py
Log:
Fixed a bug reported by Dave Rowe that prevented the Class Designer from
working with Wizards.
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2008-08-27 22:43:18 UTC (rev 4473)
+++ trunk/ide/ClassDesigner.py 2008-08-28 00:48:02 UTC (rev 4474)
@@ -446,7 +446,7 @@
# Need to ask for number of
pages.
numPages =
dabo.ui.getInt(_("How many pages?"), caption=_("Wizard Pages"),
defaultValue=3)
- pgCls =
self.getControlClass(dlgs.WizardPage)
+ pgCls =
self.Controller.getControlClass(dlgs.WizardPage)
pgs = [pgCls] * max(1, numPages)
self.append(pgs)
for num, p in
enumerate(self._pages):
@@ -1020,9 +1020,15 @@
self._srcObj =
pg
self.recreateChildren(pg, grandkids, None, False)
elif isSlidePanelControl:
+ dabo.trace()
+
for pos, kid in enumerate(kids):
pnl = obj.Children[pos]
kidatts =
kid.get("attributes", {})
+ try:
+ del
kidatts["Name"]
+ except KeyError:
+ pass
kidClassID =
self._extractKey(kidatts, "classID", "")
if kidClassID:
pnl.classID =
kidClassID
@@ -2801,6 +2807,7 @@
dui.callAfter(self.select, pnl0)
else:
dui.callAfter(self.select, obj)
+ obj.layout()
dui.callAfterInterval(100, self.updateLayout)
return obj
_______________________________________________
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]