3
8ßL]¦  ã               @   sR   d Z ddlmZ ddlmZ ddlmZ ejdkr>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
é    )Úabsolute_import)Ú	ETSConfigé   )ÚObjectColumnZwx)ÚEditRendererc                   s,   e Zd Z‡ fdd„Zdd„ Zdd„ Z‡  ZS )Ú
EditColumnc                s$   t t| ƒjf |Ž tƒ | _d| _dS )z! Initializes the object.
        Ú N)Úsuperr   Ú__init__r   ZrendererÚlabel)ÚselfZtraits)Ú	__class__© úA/tmp/pip-install-5sebvq2j/traitsui/traitsui/extras/edit_column.pyr
   )   s    zEditColumn.__init__c             C   s   | j S )z^ Returns the cell background color for the column for a specified
            object.
        )Zcell_color_)r   Úobjectr   r   r   Úget_cell_color3   s    zEditColumn.get_cell_colorc             C   s   dS )zH Returns whether the column is editable for a specified object.
        Fr   )r   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__Ú
__future__r   Ztraits.etsconfig.apir   Ztable_columnr   ZtoolkitZpyface.ui.wx.grid.edit_rendererr   r   r   r   r   r   Ú<module>   s   
