3
7ßL]O  ã               @   s$   d Z ddlmZ G dd„ deƒZdS )z* Base class for all tree label providers. é   )ÚLabelProviderc               @   s0   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
S )ÚTreeLabelProviderz� Base class for all tree label providers.

    By default an element has no label image, and 'str' is used to generate its
    label text.

    c             C   s   t |jƒ ƒdkS )zx Sets the text representation of a node.

        Returns True if setting the text succeeded, otherwise False.

        é    )ÚlenÚstrip)ÚselfÚviewerÚelementÚtext© r   úE/tmp/pip-install-5sebvq2j/pyface/pyface/viewer/tree_label_provider.pyÚset_text!   s    zTreeLabelProvider.set_textc             C   s   |S )zr Get the value that is dragged for an element.

        By default the drag value is the element itself.

        r   )r   r   r	   r   r   r   Úget_drag_value.   s    z TreeLabelProvider.get_drag_valuec             C   s   dS )z> Returns True is the element is collapsible, otherwise False. Tr   )r   r   r	   r   r   r   Úis_collapsible7   s    z TreeLabelProvider.is_collapsiblec             C   s   dS )z; Returns True is the node is expandanble, otherwise False. Tr   )r   r   Únoder   r   r   Úis_expandable<   s    zTreeLabelProvider.is_expandableN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r      s
   	r   N)r   Zlabel_providerr   r   r   r   r   r   Ú<module>   s   