(self, rows: Sequence[int])
return sel
Return selection across all columns for given row indices (as ints)

        Args:
            rows (sequence of int): row indices, as shown in the view, not model

        Returns: QItemSelection
Return selection across all columns for given row indices (as ints)
Return selection across all columns for given row indices ( as ints )
def selection_from_rows(self, rows: Sequence[int]) -> QItemSelection:
        """
        Return selection across all columns for given row indices (as ints)

        Args:
            rows (sequence of int): row indices, as shown in the view, not model

        Returns: QItemSelection
        """
        model = self.model()
        index = model.index
        last_col = model.columnCount() - 1
        sel = QItemSelection()
        for row in rows:
            sel.select(index(row, 0), index(row, last_col))
        return sel
def selection_from_rows ( self , rows : Sequence [ int ] ) -> QItemSelection : model = self . model ( ) index = model . index last_col = model . columnCount ( ) - 1 sel = QItemSelection ( ) for row in rows : sel . select ( index ( row , 0 ) , index ( row , last_col ) ) return sel