def __init__(self, parent, handler): VboxDialog.__init__(self, parent, 'BaseMachineDialog') self.handler = handler self._lists = dict(mtypes=[], profiles=[], kernels=[], filesystems=[]) self.dbaction = None self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)
def __init__(self, parent, name='SelectEntityTypeDialog'): VboxDialog.__init__(self, parent, name=name) self.label = QLabel('Select entity type', self.frame) self.combo = KComboBox(self.frame) self.vbox.addWidget(self.label) self.vbox.addWidget(self.combo) #etypes = self.app.db.get_entity_types() db = self.app.db etypes = [et.type for et in db.session.query(db.EntityType).all()] self.combo.insertStrList(etypes) self.connect(self.combo, SIGNAL('activated(const QString &)'), self._etype_selected)
def __init__(self, parent, handler): VboxDialog.__init__(self, parent) self.diskconfig = handler self.diskconfigLbl = QLabel(self.frame) self.diskconfigLbl.setText('DiskConfig Name') self.diskconfigEntry = KLineEdit(self.frame) self.contentLbl = QLabel(self.frame) self.contentLbl.setText('DiskConfig Content') self.contentEntry = KTextEdit(self.frame) self.vbox.addWidget(self.diskconfigLbl) self.vbox.addWidget(self.diskconfigEntry) self.vbox.addWidget(self.contentLbl) self.vbox.addWidget(self.contentEntry) self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)
def __init__(self, parent): VboxDialog.__init__(self, parent, 'NewMTScriptDialog') self.scriptnameBox = MTScriptComboBox(self.frame) self.scriptdataBox = KTextEdit(self.frame) self.vbox.addWidget(self.scriptnameBox) self.vbox.addWidget(self.scriptdataBox)
def __init__(self, parent, handler): VboxDialog.__init__(self, parent, 'BaseMachineDialog') self.handler = handler self.dbaction = None self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)
def __init__(self, parent): VboxDialog.__init__(self, parent, 'NewMachineScriptDialog') self.scriptnameBox = MachineScriptComboBox(self.frame) self.scriptdataBox = KTextEdit(self.frame) self.vbox.addWidget(self.scriptnameBox) self.vbox.addWidget(self.scriptdataBox)