def add_examiner(self, surn, name, patr, salary, listbox): Examiner.create(surn.get(), name.get(), patr.get(), int(salary.get())) surn.delete(0, END) name.delete(0, END) patr.delete(0, END) salary.delete(0, END) self.update_all(listbox)
def add_examiner(): try: surname = input("Enter surname: ") name = input("Enter name: ") patronymic = input("Enter patronymic: ") payment = int(input("Enter payment: ")) Examiner.create(surname, name, patronymic, payment) except: print("Error")
def addExaminerOnClick(self): Examiner.create(self.surnameEdit.text(), self.nameEdit.text(), self.patronymicEdit.text(), self.salaryEdit.value()) self.updateAllList()