MCPcopy Index your code
hub / github.com/geekcomputers/Python / create_emp_in_database

Function create_emp_in_database

bank_managment_system/frontend.py:747–775  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

745# all buttons of page1
746def create_employee():
747 def create_emp_in_database():
748 def back_to_main_page1_from_create_emp():
749 frame_create_emp.grid_forget()
750 page1()
751
752 name = entry3.get()
753 password = entry4.get()
754 salary = entry16.get()
755 position = entry17.get()
756 if (
757 len(name) != 0
758 and len(password) != 0
759 and len(salary) != 0
760 and len(position) != 0
761 ):
762 backend.create_employee(name, password, salary, position)
763 frame_create_emp.grid_forget()
764 page1()
765 else:
766 label = Label(frame_create_emp, text="Please fill all entries")
767 label.grid(pady=2)
768
769 button = Button(
770 frame_create_emp,
771 text="Exit",
772 command=back_to_main_page1_from_create_emp,
773 bg="red",
774 )
775 button.grid()
776
777 page1_frame.grid_forget()
778

Callers

nothing calls this directly

Calls 3

page1Function · 0.85
create_employeeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected