a
    §ˆcS  ã                   @   s,   d Z ddlZddlmZ G dd„ deƒZdS )zc Defines the wxPython implementation of the editor used to wrap a non-Traits
based custom control.
é    Né   )ÚEditorc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚCustomEditorz#Wrapper for a custom editor controlc                 C   sh   | j j }|dur&||| f| j j Ž | _| jdu r\t |dd¡ | _}| tj¡ | tj¡ |  	¡  dS )z\Finishes initializing the editor by creating the underlying toolkit
        widget.
        NéÿÿÿÿzIAn error occurred creating a custom editor.
Please contact the developer.)
ÚfactoryÚargsÚcontrolÚwxZ
StaticTextZSetBackgroundColourÚREDZSetForegroundColourÚWHITEZset_tooltip)ÚselfÚparentr   r   © r   ú\/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traitsui/wx/custom_editor.pyÚinit   s    
ý
zCustomEditor.initc                 C   s   dS )z[Updates the editor when the object trait changes externally to the
        editor.
        Nr   )r   r   r   r   Úupdate_editor.   s    zCustomEditor.update_editorN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s   r   )r   r	   Zeditorr   r   r   r   r   r   Ú<module>   s   