a
    ¨ˆc~  ã                   @   s(   d dl mZmZmZ G dd„ deƒZdS )é    )ÚEventÚ	InterfaceÚStrc                   @   s,   e Zd ZdZeƒ ZeZdd„ Zddd„Z	dS )	ÚISelectionProviderz Source of selections. c                 C   s   dS )z—Return the current selection.

        Returns:
            selection -- ISelection
                Object representing the current selection.
        N© )Úselfr   r   új/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/apptools/selection/i_selection_provider.pyÚget_selection   s    z ISelectionProvider.get_selectionFc                 C   s   dS )a�  Set the current selection to the given items.

        If ``ignore_missing`` is ``True``, items that are not available in the
        selection provider are silently ignored. If it is ``False`` (default),
        an :class:`~.ValueError` should be raised.

        Arguments:
            items -- list
                List of items to be selected.

            ignore_missing -- bool
                If ``False`` (default), the provider raises an exception if any
                of the items in ``items`` is not available to be selected.
                Otherwise, missing elements are silently ignored, and the rest
                is selected.
        Nr   )r   ÚitemsZignore_missingr   r   r   Úset_selection   s    z ISelectionProvider.set_selectionN)F)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Zprovider_idr   Z	selectionr	   r   r   r   r   r   r      s
   r   N)Z
traits.apir   r   r   r   r   r   r   r   Ú<module>
   s   