Changeset 4474

Show
Ignore:
Timestamp:
08/27/08 17:48:02 (3 months ago)
Author:
ed
Message:

Fixed a bug reported by Dave Rowe that prevented the Class Designer from working with Wizards.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r4425 r4474  
    447447                        numPages = dabo.ui.getInt(_("How many pages?"), caption=_("Wizard Pages"), 
    448448                                defaultValue=3) 
    449                         pgCls = self.getControlClass(dlgs.WizardPage) 
     449                        pgCls = self.Controller.getControlClass(dlgs.WizardPage) 
    450450                        pgs = [pgCls] * max(1, numPages) 
    451451                        self.append(pgs) 
     
    10211021                                self.recreateChildren(pg, grandkids, None, False) 
    10221022                    elif isSlidePanelControl: 
     1023                        dabo.trace() 
     1024 
    10231025                        for pos, kid in enumerate(kids): 
    10241026                            pnl = obj.Children[pos] 
    10251027                            kidatts = kid.get("attributes", {}) 
     1028                            try: 
     1029                                del kidatts["Name"] 
     1030                            except KeyError: 
     1031                                pass 
    10261032                            kidClassID = self._extractKey(kidatts, "classID", "") 
    10271033                            if kidClassID: 
     
    28022808            else: 
    28032809                dui.callAfter(self.select, obj) 
     2810            obj.layout() 
    28042811            dui.callAfterInterval(100, self.updateLayout) 
    28052812        return obj