
    z%i	                         	 d dl Z ddZy)    Nc                      	  fd}|S )Nc                 F     t        j                          fd       }|S )Nc                      |       | j                   d fdj                  dj                         j                          ry )Nc                      	 t               j                  j                         y # t        $ r j	                          Y y t
        $ r} | j	                          Y d } ~ y d } ~ ww xY w)N)nextafter
after_idleStopIterationquit	Exception)excafter_callbackdelay	exceptionroottest_generators    [/home/uftp/.pyenv/versions/3.12.0/lib/python3.12/idlelib/idle_test/tkinter_testing_utils.pyr   zVrun_in_tk_mainloop.<locals>.decorator.<locals>.new_test_method.<locals>.after_callback'   sZ    G( JJudoo~F %  IIK    #IIIKK s   , A+A+A&&A+r   )r   r   r	   mainloop)selfr   r   r   r   r   test_methods    @@@@r   new_test_methodz>run_in_tk_mainloop.<locals>.decorator.<locals>.new_test_method   sU    (.N99D IG G JJq$//>:MMO     )	functoolswraps)r   r   r   s   ` r   	decoratorz%run_in_tk_mainloop.<locals>.decorator   s&    		%	  
&	 8 r    )r   r   s   ` r   run_in_tk_mainloopr      s    0@ r   )   )r   r   r   r   r   <module>r      s    ( 9r   