示例#1
0
 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()
示例#2
0
 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()