def SetNodeToCurrentSelection(self):
        items = self._dag_tree.GetSelections()
        if len(items) != 1:
            return
        data = self._dag_tree.GetPyData(items[0])
        if data is None:
            return
        ctx, node = data
        self.SetNode(node, ctx)
dataset/ETHPy150Open manahl/mdf/mdf/viewer/frame.py/MDFViewerFrame.SetNodeToCurrentSelection/original