3
<Ad]g  ã               @   sv   d Z yddlmZ W n  ek
r4   ddlmZ Y nX ddlmZmZmZ ddl	Z	G dd„ deƒZ
G dd„ deƒZdS )	z7 The interface for manipulating the toolkit clipboard.
é    )ÚSequence)ÚHasStrictTraitsÚ	InterfaceÚPropertyNc               @   s8   e Zd ZdZeZeZeZeZeZ	eZ
eZeZeZeZdS )Ú
IClipboardz; The interface for manipulating the toolkit clipboard.
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú	data_typeÚdataÚhas_dataÚobject_typeÚobject_dataÚhas_object_dataÚ	text_dataÚhas_text_dataÚ	file_dataÚhas_file_data© r   r   úl/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/pyface-6.1.2-py3.6.egg/pyface/i_clipboard.pyr      s   r   c               @   sP   e Zd ZdZeZeZeZeZeZ	eZ
eZeZeZeZdd„ Zdd„ Zdd„ ZdS )	ÚBaseClipboardzr An abstract base class that contains common code for toolkit specific
        implementations of IClipboard.
    c             C   s(   | j r| jS | jr| jS | jr$| jS d S )N)r   r   r   r   r   r   )Úselfr   r   r   Ú	_get_dataa   s    zBaseClipboard._get_datac             C   s0   t |tjƒr|| _nt |tƒr&|| _n|| _d S )N)Ú
isinstanceÚsixÚstring_typesr   r   r   r   )r   r   r   r   r   Ú	_set_dataj   s
    
zBaseClipboard._set_datac             C   s$   | j r
dS | jrdS | jr | jS dS )NÚstrÚfileÚ )r   r   r   r   )r   r   r   r   Ú_get_data_typer   s    zBaseClipboard._get_data_typeN)r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r   r   r   r   r   >   s   	r   )r
   Úcollections.abcr   ÚImportErrorÚcollectionsZ
traits.apir   r   r   r   r   r   r   r   r   r   Ú<module>   s   #