3
8Ad]�  ã               @   st   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	 n ejdkrXddl
m	Z	 ned	ƒ‚G d
d„ deƒZdS )zB Defines the table column descriptor used for toggleable columns.
é    )Úabsolute_import)Ú	ETSConfigé   )ÚObjectColumnÚwx)ÚCheckboxRendererZqt4z No checkbox renderer for backendc                   s,   e Zd Z‡ fdd„Zdd„ Zdd„ Z‡  ZS )ÚCheckboxColumnc                s   t t| ƒjf |Ž tƒ | _dS )z! Initializes the object.
        N)Úsuperr   Ú__init__r   Zrenderer)ÚselfÚtraits)Ú	__class__© ú{/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/traitsui-6.1.2-py3.6.egg/traitsui/extras/checkbox_column.pyr
   1   s    zCheckboxColumn.__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_color=   s    zCheckboxColumn.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_editableI   s    zCheckboxColumn.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.checkbox_rendererr   Zqt4.extra.checkbox_rendererÚNotImplementedErrorr   r   r   r   r   Ú<module>   s   

