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

Function update_position_in_database

bank_managment_system/frontend.py:896–916  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

894 update_button.grid(row=3, column=2, padx=4)
895
896 def update_position_in_database():
897 def database_calling():
898 new_position = entry19.get()
899 if len(new_position) != 0:
900 old_name = staff_name.get()
901 backend.update_employee_position(new_position, old_name)
902 entry19.destroy()
903 update_button.destroy()
904 else:
905 entry19.destroy()
906 update_button.destroy()
907 tkinter.messagebox.showinfo("Error", "Please Fill Entry")
908
909 global entry19
910 entry19 = Entry(update_frame)
911 entry19.grid(row=4, column=1, padx=4)
912 global update_button
913 update_button = Button(
914 update_frame, text="Update", command=database_calling
915 )
916 update_button.grid(row=4, column=2, padx=4)
917
918 global update_frame
919 update_frame = Frame(tk)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected