a
    §ˆcò  ã                   @   s$   d Z ddlmZ G dd„ deƒZdS )z\ Defines the table column descriptor used for editing the object represented
    by the row
é   )ÚObjectColumnc                       s,   e Zd Z‡ fdd„Zdd„ Zdd„ Z‡  ZS )Ú
EditColumnc                    s8   t ƒ jf i |¤Ž ddlm} |dƒ}|ƒ | _d| _dS )zInitializes the object.é    )Útoolkit_objectz extra.edit_renderer:EditRendererÚ N)ÚsuperÚ__init__Ztraitsui.toolkitr   ZrendererÚlabel)ÚselfZtraitsr   ZEditRenderer©Ú	__class__© ú^/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traitsui/extras/edit_column.pyr      s
    zEditColumn.__init__c                 C   s   | j S )zYReturns the cell background color for the column for a specified
        object.
        )Zcell_color_©r
   Úobjectr   r   r   Úget_cell_color   s    zEditColumn.get_cell_colorc                 C   s   dS )z>Returns whether the column is editable for a specified object.Fr   r   r   r   r   Úis_editable'   s    zEditColumn.is_editable)Ú__name__Ú
__module__Ú__qualname__r   r   r   Ú__classcell__r   r   r   r   r      s   r   N)Ú__doc__Ztable_columnr   r   r   r   r   r   Ú<module>   s   