def update_client_balance(self, balance): if self.current_account == self.account[0]: backend.update_balance(self.id_key, 0, float(balance.get())) self.balance_window.destroy() elif self.current_account == self.account[1]: backend.update_balance(self.id_key, 1, float(balance.get())) self.balance_window.destroy()
def deposit(self, amount): if self.current_account == self.account[0]: self.chequing_balance += amount backend.update_balance(self.id_key, 0, self.chequing_balance) else: self.savings_balance += amount backend.update_balance(self.id_key, 1, self.savings_balance) self.main_screen(self.first_name_value, self.last_name_value) self.hide_items()
def update_money(): new_money = entry12.get() backend.update_balance(new_money, acc_no) add_frame.grid_forget() page2()
def update_money(): new_money=entry12.get() backend.update_balance(new_money,acc_no) add_frame.grid_forget() page2()