| Server IP : 66.29.146.62 / Your IP : 216.73.216.152 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/idlelib/idle_test/__pycache__/ |
Upload File : |
B
� f � @ s� d Z ddlmZmZ ddlmZ ed� ddlmZ ddlZddl m
Z
mZmZ ddl
Z
dd � Zd
d� Zdd
� Zdd� ZG dd� de
j�ZG dd� de
j�Zedkr�e
jdd� dS )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)�requiresZgui)�wrapsN)�Button�Tk�Toplevelc C s
t � ad S )N)r �root� r
r
�C/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_tooltip.py�setUpModule s r c C s t �� t �� b d S )N)r Zupdate_idletasks�destroyr
r
r
r �tearDownModule s r c s t � �� �fdd���g �_�S )Nc s �j �| |f� � | |�S )N)�call_args_list�append)�args�kwargs)�func�wrapped_funcr
r r s z'add_call_counting.<locals>.wrapped_func)r r )r r
)r r r �add_call_counting s r c C sN t t�}| �|j� |�d� t|dd�}|�� | �|j� |�� ||fS )NzTest tooltipzToolTip test button)�text)r r �
addCleanupr
�titler �packZlift)Ztestobj�top�buttonr
r
r �_make_top_and_button&