def current(cls, tree):
        "Take a tree view and return its currently selected node."
        node = tree.selection()
        return cls(tree, node[0] if node else node)
Take a tree view and return its currently selected node.
recipes/Python/577632_Directory_Pruner_1/recipe-577632.py