관리-도구
편집 파일: calltip_w.cpython-36.pyc
3 � f� � @ s� d Z ddlmZmZmZmZ ddlmZ dZdZ dZ dZd ZdZ G dd � d e�Zdd� Zedkr�ddlmZ edddd� ddlmZ ee� dS )zvA call-tip window class for Tkinter/IDLE. After tooltip.py, which uses ideas gleaned from PySol. Used by calltip.py. � )�Label�LEFT�SOLID�TclError)�TooltipBasez<<calltipwindow-hide>>�<Key-Escape>� <FocusOut>z<<calltipwindow-checkhide>>�<KeyRelease>�<ButtonRelease>�d Zcalltipwindowregion_rightc sv e Zd ZdZ� fdd�Zdd� Z� fdd�Z� fdd �Zd d� Zdd d�Z dd� Z � fdd�Zdd� Zdd� Z � ZS )� CalltipWindowz+A call-tip widget for tkinter text widgets.c sD t t| �j|� d | _| _d | _ | _| _d | _| _ d| _ dS )z}Create a call-tip; shown by showtip(). text_widget: a Text widget with code for which call-tips are desired N)�superr �__init__�label�text� parenline�parencol�lastline�hideid�checkhideid�checkhide_after_id)�selfZtext_widget)� __class__� �6/opt/alt/python36/lib64/python3.6/idlelib/calltip_w.pyr s zCalltipWindow.__init__c C s� t | jjd�jd�d �}|| jkr2| j| jf}n|df}| jjd| �}|snt| jjd��}d|d<