def update_name_in_database(): new_name = entry_name.get() r = check_string_in_account_no(new_name) if len(new_name) != 0: # function in backend that updates name in table backend.update_name_in_bank_table(new_name, acc_no) entry_name.destroy() submit_button.destroy() name_label.destroy() else: tkinter.messagebox.showinfo('Error', 'Please fill blanks') entry_name.destroy() submit_button.destroy() name_label.destroy()
def update_name_in_database(): new_name=entry_name.get() r=check_string_in_account_no(new_name) if len(new_name)!=0: #function in backend that updates name in table backend.update_name_in_bank_table(new_name,acc_no) entry_name.destroy() submit_button.destroy() name_label.destroy() else: tkinter.messagebox.showinfo('Error','Please fill blanks') entry_name.destroy() submit_button.destroy() name_label.destroy()