Sindbad~EG File Manager
�
&Μg � � � d Z ddlmZmZ ddlmZ ed� ddlmZ ddlZddl m
Z
mZmZ ddl
Z
d� Zd � Zd
� Zd� Z G d� d
e
j$ � Z G d� de
j$ � Zedk( r e
j, d�� yy)z�Test tooltip, coverage 100%.
Coverage is 100% after excluding 6 lines with "# pragma: no cover".
They involve TclErrors that either should or should not happen in a
particular situation, and which are 'pass'ed if they do.
� )�TooltipBase�Hovertip)�requires�gui)�wrapsN)�Button�Tk�Toplevelc � � t � ay �N)r �root� � �;/usr/local/lib/python3.12/idlelib/idle_test/test_tooltip.py�setUpModuler s � �
�4�Dr c �V � t j � t j � b y r )r
�update_idletasks�destroyr r r �tearDownModuler s � ������L�L�N�r c �@ � �� t � � � �fd�� �g �_ �S )Nc �N �� �j j | |f� �| i |��S r )�call_args_list�append)�args�kwargs�func�wrapped_funcs ��r r z'add_call_counting.<locals>.wrapped_func s+ �� ��#�#�*�*�D�&�>�:��T�$�V�$�$r )r r )r r s `@r �add_call_countingr s) �� �
�4�[�%� �%� #%�L���r c � � t t � }| j |j � |j d� t |d�� }|j
� | j |j � |j � ||fS )NzTest tooltip�ToolTip test button��text)r
r
�
addCleanupr �titler �pack�lift)�testobj�top�buttons r �_make_top_and_buttonr* &