3
8ßL]  ã               @   sD   d Z ddlmZ ddlZddlm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.
é    )Úabsolute_importN)ÚToolkitEditorFactoryé   )ÚEditorc               @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚCustomEditorz) Wrapper for a custom editor control
    c             C   sh   | j j }|dk	r&||| f| j j Ž | _| jdkr\tj|ddƒ | _}|jtjƒ |jtjƒ | j	ƒ  dS )za Finishes initializing the editor by creating the underlying toolkit
            widget.
        Nr   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   ú?/tmp/pip-install-5sebvq2j/traitsui/traitsui/wx/custom_editor.pyÚinit3   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_editorF   s    zCustomEditor.update_editorN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   +   s   r   )	r   Ú
__future__r   r   Ztraitsui.editors.custom_editorr   Úeditorr   r   r   r   r   r   Ú<module>   s
   