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

Function update_salary_in_database

bank_managment_system/frontend.py:873–894  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

871 update_button.grid(row=2, column=2, padx=4)
872
873 def update_salary_in_database():
874 def database_calling():
875 new_salary = entry19.get()
876 r = check_string_in_account_no(new_salary)
877 if len(new_salary) != 0 and r:
878 old_name = staff_name.get()
879 backend.update_employee_salary(new_salary, old_name)
880 entry19.destroy()
881 update_button.destroy()
882 else:
883 entry19.destroy()
884 update_button.destroy()
885 tkinter.messagebox.showinfo("Error", "Invalid Input")
886
887 global entry19
888 entry19 = Entry(update_frame)
889 entry19.grid(row=3, column=1, padx=4)
890 global update_button
891 update_button = Button(
892 update_frame, text="Update", command=database_calling
893 )
894 update_button.grid(row=3, column=2, padx=4)
895
896 def update_position_in_database():
897 def database_calling():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected