def database_calling(): new_password = entry19.get() old_name=staff_name.get() if len(new_password)!=0: backend.update_employee_password(new_password,old_name) entry19.destroy() update_button.destroy() else: entry19.destroy() update_button.destroy() tkinter.messagebox.showinfo('Error','Please Fill Entry')
def database_calling(): new_password = entry19.get() old_name = staff_name.get() if len(new_password) != 0: backend.update_employee_password( new_password, old_name) entry19.destroy() update_button.destroy() else: entry19.destroy() update_button.destroy() tkinter.messagebox.showinfo('Error', 'Please Fill Entry')