(self, selection: Sequence[int])
Select the specified rows. Previous selection is cleared.
Select the specified rows. Previous selection is cleared.
Select the specified rows . Previous selection is cleared .
def selectRows(self, selection: Sequence[int]):
        """Select the specified rows. Previous selection is cleared."""
        if self.parts is not None:
            indices = np.hstack([r.normalized_indices for r in self.parts.rows])
        else:
            indices = []
        condition = np.in1d(indices, selection)
        visual_indices = np.flatnonzero(condition)
        self.__selection_manager.select_rows(visual_indices.tolist())
def selectRows ( self , selection : Sequence [ int ] ) : if self . parts is not None : indices = np . hstack ( [ r . normalized_indices for r in self . parts . rows ] ) else : indices = [ ] condition = np . in1d ( indices , selection ) visual_indices = np . flatnonzero ( condition ) self . __selection_manager . select_rows ( visual_indices . tolist ( ) )