()
| 1207 | mainloop() |
| 1208 | |
| 1209 | def check_emp(): |
| 1210 | name = entry1.get() |
| 1211 | password = entry2.get() |
| 1212 | if len(name) != 0 and len(password) != 0: |
| 1213 | result = backend.check_employee(name, password) |
| 1214 | print(result) |
| 1215 | if result: |
| 1216 | employee_frame.grid_forget() |
| 1217 | page2() |
| 1218 | else: |
| 1219 | label = Label(employee_frame, text="Invalid id and pasasword") |
| 1220 | label.grid(row=6, pady=10) |
| 1221 | button = Button(employee_frame, text="Exit", command=back_to_main3) |
| 1222 | button.grid(row=7) |
| 1223 | |
| 1224 | mainloop() |
| 1225 | else: |
| 1226 | label = Label(employee_frame, text="Please Fill All Entries") |
| 1227 | label.grid(row=6, pady=10) |
| 1228 | button = Button(employee_frame, text="Exit", command=back_to_main3) |
| 1229 | button.grid(row=7) |
| 1230 | |
| 1231 | mainloop() |
| 1232 | |
| 1233 | frame.grid_forget() |
| 1234 |
nothing calls this directly
no test coverage detected