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

Function page1

bank_managment_system/frontend.py:1106–1186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1104
1105# mai page for admin
1106def page1():
1107 def back_to_main2():
1108 admin_frame.grid_forget()
1109 global frame
1110 frame = Frame(tk, bg="black")
1111 frame.grid(padx=500, pady=250)
1112
1113 button = Button(frame, text="Admin", command=admin_login)
1114 button.grid(row=0, pady=20)
1115
1116 button = Button(frame, text="Employee", command=employee_login)
1117 button.grid(row=1, pady=20)
1118
1119 button = Button(frame, text="Exit", command=tk.destroy)
1120 button.grid(row=2, pady=20)
1121 tk.mainloop()
1122
1123 mainloop()
1124
1125 name = entry1.get()
1126 password = entry2.get()
1127 if len(name) != 0 and len(password) != 0:
1128 result = backend.check_admin(name, password)
1129 print(result)
1130 if result:
1131 admin_frame.grid_forget()
1132
1133 global page1_frame
1134 page1_frame = Frame(tk, bg="black")
1135 page1_frame.grid(padx=500, pady=200)
1136
1137 button10 = Button(
1138 page1_frame,
1139 text="New Employee",
1140 command=create_employee,
1141 width=20,
1142 height=2,
1143 )
1144 button10.grid(row=0, pady=6)
1145
1146 button11 = Button(
1147 page1_frame,
1148 text="Update detail",
1149 command=update_employee,
1150 width=20,
1151 height=2,
1152 )
1153 button11.grid(row=1, pady=6)
1154
1155 button13 = Button(
1156 page1_frame,
1157 text="Show All Employee",
1158 command=show_employee,
1159 width=20,
1160 height=2,
1161 )
1162 button13.grid(row=2, pady=6)
1163

Callers 6

create_emp_in_databaseFunction · 0.85
back_to_page1Function · 0.85
back_to_main_page1Function · 0.85

Calls 2

check_adminMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected