MCPcopy Create free account
hub / github.com/geekcomputers/Python / update_age

Function update_age

bank_managment_system/frontend.py:481–508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479
480 # defing a function who make gui fro age
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:")
500 age_label.grid(row=2, column=1)
501 global entry_name
502 entry_name = Entry(update_customer_frame)
503 entry_name.grid(row=2, column=2, padx=2)
504 global submit_button
505 submit_button = Button(
506 update_customer_frame, text="Update", command=update_age_in_database
507 )
508 submit_button.grid(row=2, column=3)
509
510 # defing a function who make gui fro age
511 def update_address():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected