| Server IP : 118.27.122.248 / Your IP : 216.73.216.17 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 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/__pycache__/ |
Upload File : |
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<