Sindbad~EG File Manager
�
%Μg� � � � 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 ��./usr/local/lib/python3.12/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<