(self, rows: Set[int], flags)
(De)Select given rows

        Args:
            selection (set of int):
                rows to select; indices refer to unmapped rows in model, not view
            flags (QItemSelectionModel.SelectionFlags):
                flags that tell whether to Clear, Select, Deselect or Toggle
(De)Select given rows
( De ) Select given rows
def select_rows(self, rows: Set[int], flags):
        """
        (De)Select given rows

        Args:
            selection (set of int):
                rows to select; indices refer to unmapped rows in model, not view
            flags (QItemSelectionModel.SelectionFlags):
                flags that tell whether to Clear, Select, Deselect or Toggle
        """
        with self._emit_changed():
            if flags & QItemSelectionModel.Clear:
                self._rows.clear()
            if flags & QItemSelectionModel.Select:
                self._rows |= rows
            if flags & QItemSelectionModel.Deselect:
                self._rows -= rows
            if flags & QItemSelectionModel.Toggle:
                self._rows ^= rows
def select_rows ( self , rows : Set [ int ] , flags ) : with self . _emit_changed ( ) : if flags & QItemSelectionModel . Clear : self . _rows . clear ( ) if flags & QItemSelectionModel . Select : self . _rows |= rows if flags & QItemSelectionModel . Deselect : self . _rows -= rows if flags & QItemSelectionModel . Toggle : self . _rows ^= rows