
    ;e                     b    	 d dl mZ  G d d          Z G d d          Z G d d          ZdS )	    )Textc                       e Zd Z	 ddZd ZdS )FuncNFc                 L    d| _         || _        || _        d | _        d | _        d S )Nr   )calledresultreturn_selfargskwds)selfr   r	   s      2/usr/lib/python3.11/idlelib/idle_test/mock_idle.py__init__zFunc.__init__   s*    &				    c                     | xj         dz  c_         || _        || _        t          | j        t
                    r| j        | j        r| S | j        S )N   )r   r
   r   
isinstancer   BaseExceptionr	   )r   r
   r   s      r   __call__zFunc.__call__   sT    q		dk=11 	+ 	K;r   )NF)__name__
__module____qualname__r   r    r   r   r   r      s<           	 	 	 	 	r   r   c                   "    e Zd Z	 	 	 ddZd ZdS )EditorNc                 V    |pt                      | _        t                      | _        d S N)r   textUndoDelegatorundo)r   flistfilenamekeyrootr   s         r   r   zEditor.__init__+   s     NDFF	!OO			r   c                 r    | j                             d          }| j                             d          }||fS )Nz1.0end)r   index)r   firstlasts      r   get_selection_indiceszEditor.get_selection_indices0   s2    	&&yu%%d{r   )NNNNN)r   r   r   r   r)   r   r   r   r   r   (   sB        AE$ $ $ $
    r   r   c                       e Zd Z	 d Zd ZdS )r   c                      d S r   r   r
   s    r   undo_block_startzUndoDelegator.undo_block_start:       r   c                      d S r   r   r,   s    r   undo_block_stopzUndoDelegator.undo_block_stop<   r.   r   N)r   r   r   r-   r0   r   r   r   r   r   6   s7              r   r   N)idlelib.idle_test.mock_tkr   r   r   r   r   r   r   <module>r2      s   
 + * * * * *       @                r   