(self, selection)
Set the nodes in `selection` to be the current selected nodes.

        The selection nodes must be subtrees of the current `_displayed_root`.
Set the nodes in `selection` to be the current selected nodes.
Set the nodes in selection to be the current selected nodes .
def _set_selected_nodes(self, selection):
        # type: (List[Tree]) -> None
        """
        Set the nodes in `selection` to be the current selected nodes.

        The selection nodes must be subtrees of the current `_displayed_root`.
        """
        self.dendrogram.selectionChanged.disconnect(self._invalidate_output)
        try:
            self.dendrogram.set_selected_clusters(selection)
        finally:
            self.dendrogram.selectionChanged.connect(self._invalidate_output)
def _set_selected_nodes ( self , selection ) : # type: (List[Tree]) -> None self . dendrogram . selectionChanged . disconnect ( self . _invalidate_output ) try : self . dendrogram . set_selected_clusters ( selection ) finally : self . dendrogram . selectionChanged . connect ( self . _invalidate_output )