3
8ßL]ÿ	  ã               @   sH   d 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	d	S )
z_ Defines the PyQt implementation of the editor used to wrap a non-Traits
based custom control.
é    )Úabsolute_import)ÚQtGui)Ú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   sT   | j j }|dk	r&||| f| j j Ž | _| jdkrHtjdƒ| _| jjdƒ | jƒ  dS )za Finishes initializing the editor by creating the underlying toolkit
            widget.
        NzIAn error occurred creating a custom editor.
Please contact the developer.z#background-color: red; color: white)ÚfactoryÚargsÚcontrolr   ZQLabelZsetStyleSheetZset_tooltip)ÚselfÚparentr   © r   ú@/tmp/pip-install-5sebvq2j/traitsui/traitsui/qt4/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   N)
r   Ú
__future__r   Z	pyface.qtr   Ztraitsui.editors.custom_editorr   Úeditorr   r   r   r   r   r   Ú<module>   s
   