def _get_text(self, element):

        text = self.label_provider.get_text(self, element)
        if text is None:
            text = ''

        return text
Returns the tree item text for an element.
dataset/ETHPy150Open enthought/pyface/pyface/viewer/tree_viewer.py/TreeViewer._get_text