(self, inds: Iterable[int])
Set and select the `inds` indices
Set and select the `inds` indices
Set and select the inds indices
def setSelectedItems(self, inds: Iterable[int]):
        """Set and select the `inds` indices"""
        model = self.model()
        selection = QItemSelection()
        sym_ranges = to_ranges(ranges(inds))
        for rows, cols in product(sym_ranges, sym_ranges):
            qitemselection_select_range(selection, model, rows, cols)
        self.select(selection, QItemSelectionModel.ClearAndSelect)
def setSelectedItems ( self , inds : Iterable [ int ] ) : model = self . model ( ) selection = QItemSelection ( ) sym_ranges = to_ranges ( ranges ( inds ) ) for rows , cols in product ( sym_ranges , sym_ranges ) : qitemselection_select_range ( selection , model , rows , cols ) self . select ( selection , QItemSelectionModel . ClearAndSelect )