()
| 1012 | |
| 1013 | |
| 1014 | def show_employee(): |
| 1015 | def back_to_main_page1(): |
| 1016 | show_employee_frame.grid_forget() |
| 1017 | page1() |
| 1018 | |
| 1019 | page1_frame.grid_forget() |
| 1020 | |
| 1021 | global show_employee_frame |
| 1022 | show_employee_frame = Frame(tk) |
| 1023 | show_employee_frame.grid(padx=50, pady=50) |
| 1024 | |
| 1025 | label = Label( |
| 1026 | show_employee_frame, |
| 1027 | text="Name\t\t\tSalary\t\t\tPosition\t\t\tpassword", |
| 1028 | font="bold", |
| 1029 | ) |
| 1030 | label.grid(row=0) |
| 1031 | |
| 1032 | details = backend.show_employees() |
| 1033 | |
| 1034 | for i in details: |
| 1035 | label = Label( |
| 1036 | show_employee_frame, |
| 1037 | text="{}\t\t\t{}\t\t\t{}\t\t\t{}".format(i[0], i[1], i[2], i[3]), |
| 1038 | ) |
| 1039 | label.grid(pady=4) |
| 1040 | |
| 1041 | button = Button( |
| 1042 | show_employee_frame, |
| 1043 | text="Exit", |
| 1044 | command=back_to_main_page1, |
| 1045 | width=20, |
| 1046 | height=2, |
| 1047 | bg="red", |
| 1048 | font="bold", |
| 1049 | ) |
| 1050 | button.grid() |
| 1051 | |
| 1052 | mainloop() |
| 1053 | |
| 1054 | |
| 1055 | def Total_money(): |
nothing calls this directly
no test coverage detected