| Server IP : 121.121.20.254 / Your IP : 216.73.216.59 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/idlelib/__pycache__/ |
Upload File : |
�
���gu � � � d Z ddlmZmZmZmZ ddlmZ dZdZ dZ
dZdZd Z
G d
� de� Zd� Zed
k( r ddlmZ eddd�� ddlmZ ee� yy)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 �calltipwindowregion_rightc �f � � e Zd ZdZ� fd�Zd� Z� fd�Z� fd�Zd� Zdd�Z d� Z
� fd �Zd
� Zd� Z
� xZS )
�
CalltipWindowz+A call-tip widget for tkinter text widgets.c � �� t �| � |� dx| _ | _ dx| _ x| _ | _ dx| _ | _ d| _ y)z}Create a call-tip; shown by showtip().
text_widget: a Text widget with code for which call-tips are desired
N)
�super�__init__�label�text� parenline�parencol�lastline�hideid�checkhideid�checkhide_after_id)�self�text_widget� __class__s ��&C:\Python312\\Lib\idlelib\calltip_w.pyr zCalltipWindow.__init__ sL �� � ����%�!%�%��
�T�Y�9=�=���=�����)-�-���d�&�"&��� c � � t | j j d� j d� d � }|| j k( r| j | j
f}n|df}| j j
d|z � }|s.t | j j
d� � }d|d<