def __init__(self, parent): VboxDialog.__init__(self, parent, 'NewMTScriptDialog') self.scriptnameBox = MTScriptCombo(self.page) self.scriptdataBox = KTextEdit(self.page) self.vbox.addWidget(self.scriptnameBox) self.vbox.addWidget(self.scriptdataBox) self.show()
def __init__(self, parent, name='TicketDialog'): VboxDialog.__init__(self, parent, name) self.titleEdit = KLineEdit('', self.page) self.dataEdit = KTextEdit(self.page) self.vbox.addWidget(self.titleEdit) self.vbox.addWidget(self.dataEdit) self.showButtonApply(False) self.setButtonOKText('insert', 'insert') self.show()
def __init__(self, parent, name='ActionDialog'): VboxDialog.__init__(self, parent, name) self.actionEdit = KLineEdit('', self.page) self.statusEdit = KComboBox(self.page) self.workdoneEdit = KTextEdit(self.page) self.vbox.addWidget(self.actionEdit) self.vbox.addWidget(self.statusEdit) self.vbox.addWidget(self.workdoneEdit) self.showButtonApply(False) self.setButtonOKText('insert', 'insert') self.show()
def __init__(self, parent, name='ActionDialog'): VboxDialog.__init__(self, parent, name) self.subjEdit = KLineEdit('', self.page) self.actionEdit = KLineEdit('comment', self.page) self.dataEdit = KTextEdit(self.page) self.vbox.addWidget(self.subjEdit) self.vbox.addWidget(self.actionEdit) self.vbox.addWidget(self.dataEdit) self.showButtonApply(False) self.setButtonOKText('insert', 'insert') self.show()
def __init__(self, parent, clientid, name='TroubleDialog'): VboxDialog.__init__(self, parent, name) self.clientid = clientid self.problemEdit = KLineEdit('', self.page) self.magnetBox = MyCombo(self.page) self.worktodoEdit = KTextEdit(self.page) self.vbox.addWidget(self.problemEdit) self.vbox.addWidget(self.magnetBox) self.vbox.addWidget(self.worktodoEdit) self.showButtonApply(False) self.setButtonOKText('insert', 'insert') self.show()
def __init__(self, parent, handler): VboxDialog.__init__(self, parent, 'NewMachineDialog') self.conn = handler.conn self.handler = handler self.mtypeBox = MyCombo(self.page) self.mtypeBox.fill(self.handler.list_all_machine_types()) self.profileBox = MyCombo(self.page) #self.profileBox.fill(['hello']) self.profileBox.fill(self.handler.list_all_profiles()) self.kernelBox = MyCombo(self.page) self.kernelBox.fill(self.handler.list_all_kernels()) self.fsBox = MyCombo(self.page) self.fsBox.fill(self.handler.list_all_filesystems()) boxes = [self.mtypeBox, self.profileBox, self.kernelBox, self.fsBox] map(self.vbox.addWidget, boxes) self.show()