def do_mark(): for row in self.transactions_tbl.selected_rows: t = self.transactions_tbl.rows[row] Q.markTransactionAsInvoiceable(t, True)