()
| 481 | def update_age(): |
| 482 | # def a function eho updates name in database |
| 483 | def update_age_in_database(): |
| 484 | new_age = entry_name.get() |
| 485 | r = check_string_in_account_no(new_age) |
| 486 | if len(new_age) != 0 and r: |
| 487 | # function in backend that updates name in table |
| 488 | backend.update_age_in_bank_table(new_age, acc_no) |
| 489 | entry_name.destroy() |
| 490 | submit_button.destroy() |
| 491 | age_label.destroy() |
| 492 | else: |
| 493 | tkinter.messagebox.showinfo("Error", "Please enter age") |
| 494 | entry_name.destroy() |
| 495 | submit_button.destroy() |
| 496 | age_label.destroy() |
| 497 | |
| 498 | global age_label |
| 499 | age_label = Label(update_customer_frame, text="Enter new Age:") |
nothing calls this directly
no test coverage detected