3
8ßL]Ç  ã               @   s\   d dl mZ d dlmZ ddlmZ d dlmZ ddlm	Z	 G dd	„ d	eƒZ
e
Ze
Ze
Zd
S )é    )Úabsolute_import)ÚQtCoreé   )ÚEditor)ÚHeadingTexté   )ÚTitleEditorc               @   s   e Zd Zdd„ Zdd„ ZdS )ÚSimpleEditorc             C   sF   t dƒ| _| jj| _| jjr:| jjƒ tjjB }| jj	|ƒ | j
ƒ  dS )za Finishes initializing the editor by creating the underlying toolkit
            widget.
        N)r   Ú_controlÚcontrolÚfactoryZallow_selectionZtextInteractionFlagsr   ZQtZTextSelectableByMouseZsetTextInteractionFlagsZset_tooltip)ÚselfÚparentÚflags© r   ú?/tmp/pip-install-5sebvq2j/traitsui/traitsui/qt4/title_editor.pyÚinit&   s    


zSimpleEditor.initc             C   s   | j | j_dS )z^ Updates the editor when the object trait changes external to the
            editor.
        N)Z	str_valuer
   Útext)r   r   r   r   Úupdate_editor6   s    zSimpleEditor.update_editorN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r	      s   r	   N)Ú
__future__r   Z	pyface.qtr   Úeditorr   Zpyface.heading_textr   Zeditors.title_editorr   r	   ZCustomEditorZReadonlyEditorZ
TextEditorr   r   r   r   Ú<module>   s   