예제 #1
0
def Total_money():
    def back_to_main_page1_from_total_money():
        all_money.grid_forget()
        page1()

    page1_frame.grid_forget()

    all = backend.all_money()

    global all_money
    all_money = Frame(tk)
    all_money.grid(padx=500, pady=300)

    label = Label(all_money, text="Total Amount of money")
    label.grid(row=0, pady=6)

    label = Label(all_money, text='{}'.format(all))
    label.grid(row=1)

    button = Button(all_money,
                    text="Back",
                    command=back_to_main_page1_from_total_money,
                    width=15,
                    height=2)
    button.grid(row=3)

    mainloop()
예제 #2
0
def Total_money():
    def back_to_main_page1_from_total_money():
        all_money.grid_forget()
        page1()

    page1_frame.grid_forget()

    all=backend.all_money()

    global all_money
    all_money=Frame(tk)
    all_money.grid(padx=500,pady=300)

    label=Label(all_money,text="Total Amount of money")
    label.grid(row=0,pady=6)

    label=Label(all_money,text='{}'.format(all))
    label.grid(row=1)

    button=Button(all_money,text="Back",command=back_to_main_page1_from_total_money,width=15,height=2)
    button.grid(row=3)

    mainloop()