def on_add(self): username = self.entry_user.text() password = self.entry_pass.text() if username and password: account_item = host_accounts.create_account_item(self.cb.currentText(), username, password) #error, since we didnt check it, yet. self.__model.clear() self.load_accounts() host_accounts.start_checking(account_item.host, account_item.id_account)
def on_add(self): username = self.entry_user.text() password = self.entry_pass.text() if username and password: account_item = host_accounts.create_account_item( self.cb.currentText(), username, password) #error, since we didnt check it, yet. self.__model.clear() self.load_accounts() host_accounts.start_checking(account_item.host, account_item.id_account)
def on_check(self): row = self.get_selected_row() host_accounts.start_checking(self.items[row][HOST], self.items[row][ACCOUNT_ID])