a
    ¦ˆc›  ã                   @   sH   d Z ddlmZ ddlmZmZm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ÚPropertyc                   @   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   úU/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/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_data]   s    zBaseClipboard._get_datac                 C   s.   t |tƒr|| _nt |tƒr$|| _n|| _d S r   )Ú
isinstanceÚstrr   r   r   r   )r   r   r   r   r   Ú	_set_dataf   s
    

zBaseClipboard._set_datac                 C   s$   | j r
dS | jrdS | jr | jS dS )Nr   ÚfileÚ )r   r   r   r   r   r   r   r   Ú_get_data_typen   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   N)	r
   Úcollections.abcr   Z
traits.apir   r   r   r   r   r   r   r   r   Ú<module>   s   #