Exemplo n.º 1
0
    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()
Exemplo n.º 2
0
    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()
Exemplo n.º 3
0
 def update_money():
     new_money = entry12.get()
     backend.update_balance(new_money, acc_no)
     add_frame.grid_forget()
     page2()
Exemplo n.º 4
0
 def update_money():
     new_money=entry12.get()
     backend.update_balance(new_money,acc_no)
     add_frame.grid_forget()
     page2()