Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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)
Ejemplo n.º 5
0
 def initToolbar(self):
     toolbar = self.toolBar()
     self.newAction.plug(toolbar)
     BaseTextEditWindow.initToolbar(self)
Ejemplo n.º 6
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.mainView.slotCreateNewVariable, collection)
Ejemplo n.º 7
0
 def initToolbar(self):
     toolbar = self.toolBar()
     self.newAction.plug(toolbar)
     BaseTextEditWindow.initToolbar(self)
Ejemplo n.º 8
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(
         self.mainView.slotCreateNewVariable, collection)