()
| 691 | |
| 692 | # main page for employees |
| 693 | def page2(): |
| 694 | def back_to_main_from_page2(): |
| 695 | frame1.grid_forget() |
| 696 | global frame |
| 697 | frame = Frame(tk, bg="black") |
| 698 | frame.grid(padx=500, pady=250) |
| 699 | |
| 700 | button = Button(frame, text="Admin", command=admin_login) |
| 701 | button.grid(row=0, pady=20) |
| 702 | |
| 703 | button = Button(frame, text="Employee", command=employee_login) |
| 704 | button.grid(row=1, pady=20) |
| 705 | |
| 706 | button = Button(frame, text="Exit", command=tk.destroy) |
| 707 | button.grid(row=2, pady=20) |
| 708 | tk.mainloop() |
| 709 | |
| 710 | frame.grid_forget() |
| 711 | global frame1 |
| 712 | frame1 = Frame(tk, bg="black") |
| 713 | frame1.grid(padx=500, pady=100) |
| 714 | button1 = Button(frame1, text="Create Account", command=create, width=20, height=2) |
| 715 | button1.grid(row=0, pady=6) |
| 716 | button2 = Button( |
| 717 | frame1, text="Show Details", command=search_acc, width=20, height=2 |
| 718 | ) |
| 719 | button2.grid(row=1, pady=6) |
| 720 | button3 = Button(frame1, text="Add balance", command=add, width=20, height=2) |
| 721 | button3.grid(row=2, pady=6) |
| 722 | button4 = Button( |
| 723 | frame1, text="Withdraw money", command=withdraw, width=20, height=2 |
| 724 | ) |
| 725 | button4.grid(row=3, pady=6) |
| 726 | button5 = Button(frame1, text="Check balance", command=check, width=20, height=2) |
| 727 | button5.grid(row=4, pady=6) |
| 728 | button6 = Button(frame1, text="Update Account", command=update, width=20, height=2) |
| 729 | button6.grid(row=5, pady=6) |
| 730 | button7 = Button( |
| 731 | frame1, text="List of all members", command=allmembers, width=20, height=2 |
| 732 | ) |
| 733 | button7.grid(row=6, pady=6) |
| 734 | button8 = Button(frame1, text="Delete Account", command=delete, width=20, height=2) |
| 735 | button8.grid(row=7, pady=6) |
| 736 | |
| 737 | button9 = Button( |
| 738 | frame1, text="Exit", command=back_to_main_from_page2, width=20, height=2 |
| 739 | ) |
| 740 | button9.grid(row=8, pady=6) |
| 741 | |
| 742 | mainloop() |
| 743 | |
| 744 | |
| 745 | # all buttons of page1 |
no outgoing calls
no test coverage detected