Пример #1
0
def allmembers():
    def clear_list_frame():
        list_frame.grid_forget()
        page2()

    frame1.grid_forget()
    details = backend.list_all_customers()
    global tk

    global list_frame
    list_frame = Frame(tk)
    list_frame.grid(padx=50, pady=50)
    label = Label(list_frame,
                  text="Acc_no\t\t\tName\t\t\tAge\t\t\tAddress\t\t\tbalance")
    label.grid(pady=6)
    for i in details:
        label = Label(list_frame,
                      text="{}\t\t\t{}\t\t\t{}\t\t\t{}\t\t\t{}".format(
                          i[0], i[1], i[2], i[3], i[4]))
        label.grid(pady=4)

    button = Button(list_frame,
                    text='Back',
                    width=20,
                    height=2,
                    bg='red',
                    command=clear_list_frame)
    button.grid()
    mainloop()
Пример #2
0
def allmembers():
    def clear_list_frame():
        list_frame.grid_forget()
        page2()
    frame1.grid_forget()
    details=backend.list_all_customers()
    global tk


    global list_frame
    list_frame=Frame(tk)
    list_frame.grid(padx=50,pady=50)
    label=Label(list_frame,text="Acc_no\t\t\tName\t\t\tAge\t\t\tAddress\t\t\tbalance")
    label.grid(pady=6)
    for i in details:
        label=Label(list_frame,text="{}\t\t\t{}\t\t\t{}\t\t\t{}\t\t\t{}".format(i[0],i[1],i[2],i[3],i[4]))
        label.grid(pady=4)

    button=Button(list_frame,text='Back',width=20,height=2,bg='red',command=clear_list_frame)
    button.grid()
    mainloop()