def expanded(self):
        "Return whether or not the node is current open."
        value = self.__tree.item(self.__node, 'open')
        return bool(value) and value.string == 'true'
Return whether or not the node is current open.
recipes/Python/577635_Directory_Pruner_3/recipe-577635.py