()
| 290 | else: |
| 291 | |
| 292 | def deduct_money(): |
| 293 | new_money = entry12.get() |
| 294 | result = backend.deduct_balance(new_money, acc_no) |
| 295 | if result: |
| 296 | add_frame.grid_forget() |
| 297 | page2() |
| 298 | else: |
| 299 | label = Label(search_frame, text="Insufficient Balance") |
| 300 | label.grid(row=4) |
| 301 | |
| 302 | button = Button(search_frame, text="Exit", command=go_page2) |
| 303 | button.grid(row=5) |
| 304 | |
| 305 | mainloop() |
| 306 | |
| 307 | search_frame.grid_forget() |
| 308 | global add_frame |
nothing calls this directly
no test coverage detected