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/577633_Directory_Pruner_2/recipe-577633.py