Ejemplo n.º 1
0
 def update_age_in_database():
     new_age = entry_name.get()
     r = check_string_in_account_no(new_age)
     if len(new_age) != 0 and r:
         # function in backend that updates name in table
         backend.update_age_in_bank_table(new_age, acc_no)
         entry_name.destroy()
         submit_button.destroy()
         age_label.destroy()
     else:
         tkinter.messagebox.showinfo('Error', 'Please enter age')
         entry_name.destroy()
         submit_button.destroy()
         age_label.destroy()
Ejemplo n.º 2
0
 def update_age_in_database():
     new_age = entry_name.get()
     r=check_string_in_account_no(new_age)
     if len(new_age)!=0 and r:
         # function in backend that updates name in table
         backend.update_age_in_bank_table(new_age, acc_no)
         entry_name.destroy()
         submit_button.destroy()
         age_label.destroy()
     else:
         tkinter.messagebox.showinfo('Error','Please enter age')
         entry_name.destroy()
         submit_button.destroy()
         age_label.destroy()