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

Function update_address

bank_managment_system/frontend.py:511–538  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

509
510 # defing a function who make gui fro age
511 def update_address():
512 # def a function eho updates name in database
513 def update_address_in_database():
514 new_address = entry_name.get()
515 if len(new_address) != 0:
516 # function in backend that updates name in table
517 backend.update_address_in_bank_table(new_address, acc_no)
518 entry_name.destroy()
519 submit_button.destroy()
520 address_label.destroy()
521 else:
522 tkinter.messagebox.showinfo("Error", "Please fill address")
523 entry_name.destroy()
524 submit_button.destroy()
525 address_label.destroy()
526
527 global address_label
528
529 address_label = Label(update_customer_frame, text="Enter new Address:")
530 address_label.grid(row=3, column=1)
531 global entry_name
532 entry_name = Entry(update_customer_frame)
533 entry_name.grid(row=3, column=2, padx=2)
534 global submit_button
535 submit_button = Button(
536 update_customer_frame, text="Update", command=update_address_in_database
537 )
538 submit_button.grid(row=3, column=3)
539
540 acc_no = entry_acc.get()
541

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected