a
    §ˆc  ã                   @   s\   d Z G dd„ dƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZG d	d
„ d
ƒZG dd„ dƒZdS )a    This module defines objects for locating nested UI targets, to be
used with ``UIWrapper.locate``.

Implementations for these actions are expected to return a value which is
a UI target where further location resolution or user interaction can be
applied.
c                   @   s   e Zd ZdZdd„ ZdS )ÚCellzÉ A locator for locating a target uniquely specified by a row index and a
    column index.

    Attributes
    ----------
    row : int
        0-based index
    column : int
        0-based index
    c                 C   s   || _ || _d S ©N)ÚrowÚcolumn)Úselfr   r   © r   úb/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traitsui/testing/tester/locator.pyÚ__init__    s    zCell.__init__N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdd„ ZdS )ÚIndexz£A locator for locating a target that is uniquely specified by a single
    0-based index.

    Attributes
    ----------
    index : int
        0-based index
    c                 C   s
   || _ d S r   )Úindex)r   r   r   r   r   r   /   s    zIndex.__init__Nr	   r   r   r   r   r   %   s   	r   c                   @   s   e Zd ZdZdd„ ZdS )ÚTargetByNamezjA locator for locating the next UI target using a name.

    Attributes
    ----------
    name : str
    c                 C   s
   || _ d S r   )Úname)r   r   r   r   r   r   ;   s    zTargetByName.__init__Nr	   r   r   r   r   r   3   s   r   c                   @   s   e Zd ZdZdd„ ZdS )Ú
TargetByIdzgA locator for locating the next UI target using an id.

    Attributes
    ----------
    id : str
    c                 C   s
   || _ d S r   )Úid)r   r   r   r   r   r   G   s    zTargetById.__init__Nr	   r   r   r   r   r   ?   s   r   c                   @   s   e Zd ZdZdS )ÚSliderz:A locator for locating a nested slider widget within a UI.N©r
   r   r   r   r   r   r   r   r   K   s   r   c                   @   s   e Zd ZdZdS )ÚTextboxz;A locator for locating a nested textbox widget within a UI.Nr   r   r   r   r   r   Q   s   r   N)r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   	