()
| 607 | |
| 608 | |
| 609 | def allmembers(): |
| 610 | def clear_list_frame(): |
| 611 | list_frame.grid_forget() |
| 612 | page2() |
| 613 | |
| 614 | frame1.grid_forget() |
| 615 | details = backend.list_all_customers() |
| 616 | global tk |
| 617 | |
| 618 | global list_frame |
| 619 | list_frame = Frame(tk) |
| 620 | list_frame.grid(padx=50, pady=50) |
| 621 | label = Label( |
| 622 | list_frame, text="Acc_no\t\t\tName\t\t\tAge\t\t\tAddress\t\t\tbalance" |
| 623 | ) |
| 624 | label.grid(pady=6) |
| 625 | for i in details: |
| 626 | label = Label( |
| 627 | list_frame, |
| 628 | text="{}\t\t\t{}\t\t\t{}\t\t\t{}\t\t\t{}".format( |
| 629 | i[0], i[1], i[2], i[3], i[4] |
| 630 | ), |
| 631 | ) |
| 632 | label.grid(pady=4) |
| 633 | |
| 634 | button = Button( |
| 635 | list_frame, text="Back", width=20, height=2, bg="red", command=clear_list_frame |
| 636 | ) |
| 637 | button.grid() |
| 638 | mainloop() |
| 639 | |
| 640 | |
| 641 | def delete(): |
nothing calls this directly
no test coverage detected