관리-도구
편집 파일: test_tooltip.cpython-36.pyc
3 � f � @ s� d dl mZmZ d dlmZ ed� d dlmZ d dlZd dlm Z m Z mZ d dlZdd� Z d d � Zdd� Zd d� Zdd� ZG dd� dej�ZG dd� dej�Zedkr�ejdd� dS )� )�TooltipBase�Hovertip)�requiresZgui)�wrapsN)�Button�Tk�Toplevelc C s t � ad S )N)r �root� r r �C/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_tooltip.py�setUpModule s r c C s t j� d S )N)r �updater r r r �root_update s r c C s t j� t j� b d S )N)r Zupdate_idletasks�destroyr r r r �tearDownModule s r c s t � �� �fdd���g �_�S )Nc s �j 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|j� |jd� t|dd�}|j� | j|j� |j� ||fS )NzTest tooltipzToolTip test button)�text)r r � addCleanupr �titler �packZlift)Ztestobj�top�buttonr r r �_make_top_and_button"