예제 #1
0
    def __init__(self, data, name, main, editor, saved, app=None):
        ClassModel.__init__(self, data, name, main, editor, saved, app)
        self.designerTool = None
        self.specialAttrs = {}

        self.defCreateClass = sourceconst.defCreateClass
        self.defClass = sourceconst.defClass
        self.defImport = sourceconst.defImport
        self.defWindowIds = sourceconst.defWindowIds
        self.defSrcVals = {}
예제 #2
0
    def __init__(self, data, name, main, editor, saved, app=None):
        ClassModel.__init__(self, data, name, main, editor, saved, app)
        self.designerTool = None
        self.specialAttrs = {}

        self.defCreateClass = sourceconst.defCreateClass
        self.defClass = sourceconst.defClass
        self.defImport = sourceconst.defImport
        self.defWindowIds = sourceconst.defWindowIds
        self.defSrcVals = {}
예제 #3
0
 def renameMain(self, oldName, newName):
     """ Rename the main class of the module """
     ClassModel.renameMain(self, oldName, newName)
     if self.getModule().functions.has_key('create'):
         self.getModule().replaceFunctionBody('create',
               ['    return %s(parent)'%newName, ''])
예제 #4
0
 def update(self):
     ClassModel.update(self)
예제 #5
0
 def renameMain(self, oldName, newName):
     """ Rename the main class of the module """
     ClassModel.renameMain(self, oldName, newName)
     if self.getModule().functions.has_key('create'):
         self.getModule().replaceFunctionBody(
             'create', ['    return %s(parent)' % newName, ''])
예제 #6
0
 def update(self):
     ClassModel.update(self)