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

Function update_password_in_database

bank_managment_system/frontend.py:851–871  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

849 update_button.grid(row=1, column=2, padx=4)
850
851 def update_password_in_database():
852 def database_calling():
853 new_password = entry19.get()
854 old_name = staff_name.get()
855 if len(new_password) != 0:
856 backend.update_employee_password(new_password, old_name)
857 entry19.destroy()
858 update_button.destroy()
859 else:
860 entry19.destroy()
861 update_button.destroy()
862 tkinter.messagebox.showinfo("Error", "Please Fill Entry")
863
864 global entry19
865 entry19 = Entry(update_frame)
866 entry19.grid(row=2, column=1, padx=4)
867 global update_button
868 update_button = Button(
869 update_frame, text="Update", command=database_calling
870 )
871 update_button.grid(row=2, column=2, padx=4)
872
873 def update_salary_in_database():
874 def database_calling():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected