python (3.11.7)
    e                         d Z ddlmZmZmZmZ ddlmZ dZdZ	dZ
dZdZd	Z
 G d
 de          Zd Zed
k    r'ddlmZ  eddd           ddlmZ  ee           dS dS )zvA call-tip window class for Tkinter/IDLE.
After tooltip.py, which uses ideas gleaned from PySol.
Used by calltip.py.
    )LabelLEFTSOLIDTclError)TooltipBasez<<calltipwindow-hide>>)z<Key-Escape>z
<FocusOut>z<<calltipwindow-checkhide>>)z<KeyRelease>z<ButtonRelease>d   calltipwindowregion_rightc                   f     e Zd ZdZ fdZd Z fdZ fdZd Zd
dZ	d	 Z
 fd
Zd Zd Z
 xZS )
CalltipWindowz+A call-tip widget for tkinter text widgets.c                     t                                          |           dx| _        | _        dx| _        x| _        | _        dx| _        | _        d| _	        dS )z}Create a call-tip; shown by showtip().
        text_widget: a Text widget with code for which call-tips are desired
        N)
super__init__labeltext	parenlineparencollastlinehideidcheckhideidcheckhide_after_id)selftext_widget	__class__s     E/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/idlelib/calltip_w.pyr   zCalltipWindow.__init__   s]     	%%%!%%
TY9===)--d&"&    c                    t          | j                            d                              d          d                   }|| j        k    r| j        | j        f}n|df}| j                            d|z            }|s1t          | j                            d                    }d|d<