def update_address_in_database(): new_address = entry_name.get() if len(new_address) != 0: # function in backend that updates name in table backend.update_address_in_bank_table(new_address, acc_no) entry_name.destroy() submit_button.destroy() address_label.destroy() else: tkinter.messagebox.showinfo('Error', 'Please fill address') entry_name.destroy() submit_button.destroy() address_label.destroy()
def update_address_in_database(): new_address = entry_name.get() if len(new_address)!=0: # function in backend that updates name in table backend.update_address_in_bank_table(new_address, acc_no) entry_name.destroy() submit_button.destroy() address_label.destroy() else: tkinter.messagebox.showinfo('Error','Please fill address') entry_name.destroy() submit_button.destroy() address_label.destroy()