관리-도구
편집 파일: test_tooltip.cpython-37.pyc
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&