a
    §ˆc'  ã                   @   sL   d 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
eZdS )	z; Define an editor that displays a string value as a title.
é   )ÚEditoré    )ÚHeadingText)ÚTitleEditorc                       s,   e Zd Zdd„ Zdd„ Z‡ fdd„Z‡  ZS )Ú_TitleEditorc                 C   s.   t |dd�| _| j ¡  | jj| _|  ¡  dS )z\Finishes initializing the editor by creating the underlying toolkit
        widget.
        F)ÚparentÚcreateN)r   Ú_controlr   ÚcontrolZset_tooltip)Úselfr   © r   ú[/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traitsui/wx/title_editor.pyÚinit    s    

z_TitleEditor.initc                 C   s   | j | j_dS )zYUpdates the editor when the object trait changes external to the
        editor.
        N)Z	str_valuer	   Útext©r   r   r   r   Úupdate_editor)   s    z_TitleEditor.update_editorc                    s"   | j dur| j  ¡  tƒ  ¡  dS )zkCleanly dispose of the editor.

        This ensures that the wrapped Pyface Widget is cleaned-up.
        N)r	   ÚdestroyÚsuperÚdisposer   ©Ú	__class__r   r   r   /   s    

z_TitleEditor.dispose)Ú__name__Ú
__module__Ú__qualname__r   r   r   Ú__classcell__r   r   r   r   r      s   	r   N)Ú__doc__Zeditorr   Z
pyface.apir   Ztraitsui.editors.title_editorr   r   ZSimpleEditorZCustomEditorZReadonlyEditorZ
TextEditorr   r   r   r   Ú<module>   s   