관리-도구
편집 파일: calltip_w.cpython-37.opt-1.pyc
B � f� � @ s� d Z ddlmZmZmZmZ ddlmZ dZdZ dZ dZdZd Z G d d� de�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>>)z<Key-Escape>z <FocusOut>z<<calltipwindow-checkhide>>)z<KeyRelease>z<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| ��|� 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/python37/lib64/python3.7/idlelib/calltip_w.pyr s zCalltipWindow.__init__c C s� t | j�d��d�d �}|| jkr2| j| jf}n|df}| j�d| �}|snt| j�d��}d|d<