def __init__(self, parent, suite, trait, template, name='TemplateViewWindow'): BaseTextEditWindow.__init__(self, parent, TemplateTextEdit, name=name) self.initPaellaCommon() self.trait = Trait(self.conn, suite=suite) self.mainView.trait = self.trait self.trait.set_trait(trait) self.resize(600, 800) self.set_template(template)
def __init__(self, parent, trait, suite, name='TraitDescriptionWindow'): BaseTextEditWindow.__init__(self, parent, KTextEdit, name=name) self.initPaellaCommon() self.trait = Trait(self.conn, suite=suite) self.trait.set_trait(trait) self.resize(600, 800) desc = self.trait.get_description() if desc is not None: self.mainView.setText(desc)
def initToolbar(self): toolbar = self.toolBar() self.newAction.plug(toolbar) BaseTextEditWindow.initToolbar(self)
def initActions(self): BaseTextEditWindow.initActions(self) collection = self.actionCollection() self.newAction = KStdAction.openNew(self.mainView.slotCreateNewVariable, collection)
def initActions(self): BaseTextEditWindow.initActions(self) collection = self.actionCollection() self.newAction = KStdAction.openNew( self.mainView.slotCreateNewVariable, collection)