Esempio n. 1
0
                def database_calling():
                    new_salary = entry19.get()
                    r = check_string_in_account_no(new_salary)
                    if len(new_salary) != 0 and r:

                        old_name = staff_name.get()
                        backend.update_employee_salary(new_salary, old_name)
                        entry19.destroy()
                        update_button.destroy()
                    else:
                        entry19.destroy()
                        update_button.destroy()
                        tkinter.messagebox.showinfo('Error', 'Invalid Input')
Esempio n. 2
0
                def database_calling():
                    new_salary = entry19.get()
                    r=check_string_in_account_no(new_salary)
                    if len(new_salary)!=0 and r:

                        old_name=staff_name.get()
                        backend.update_employee_salary(new_salary,old_name)
                        entry19.destroy()
                        update_button.destroy()
                    else:
                        entry19.destroy()
                        update_button.destroy()
                        tkinter.messagebox.showinfo('Error','Invalid Input')