def GetSelectedContextsAndNodes(self):
        items = self._dag_tree.GetSelections()
        ctxs_and_nodes = []
        for item in items:
            data = self._dag_tree.GetPyData(item)
            if not data:
                return
            ctx, node = data
            if (ctx, node) not in ctxs_and_nodes:
                ctxs_and_nodes.append((ctx, node))
        return ctxs_and_nodes
returns a list of (ctx, node)
dataset/ETHPy150Open manahl/mdf/mdf/viewer/frame.py/MDFViewerFrame.GetSelectedContextsAndNodes