def deduct_money(): new_money = entry12.get() result=backend.deduct_balance(new_money, acc_no) if result: add_frame.grid_forget() page2() else: label=Label(search_frame,text="Insufficient Balance") label.grid(row=4) button=Button(search_frame,text='Exit',command=go_page2) button.grid(row=5) mainloop()
def deduct_money(): new_money = entry12.get() result = backend.deduct_balance(new_money, acc_no) if result: add_frame.grid_forget() page2() else: label = Label(search_frame, text="Insufficient Balance") label.grid(row=4) button = Button(search_frame, text='Exit', command=go_page2) button.grid(row=5) mainloop()