a
    §ˆcá	  ã                   @   s0   d 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.
é    )ÚQtGuié   )ÚEditorc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚCustomEditorz#Wrapper for a custom editor controlc                 C   sT   | j j }|dur&||| f| j j Ž | _| jdu rHt d¡| _| j d¡ |  ¡  dS )z\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   ú]/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/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   Z	pyface.qtr   Zeditorr   r   r   r   r   r   Ú<module>   s   