shell bypass 403
�
Tf� � �� � 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.
� )�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� Zd
d�Z 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__�label�text� parenline�parencol�lastline�hideid�checkhideid�checkhide_after_id)�self�text_widget� __class__s ��:/usr/local/python-3.11/lib/python3.11/idlelib/calltip_w.pyr zCalltipWindow.__init__ s] �� � ������%�%�%�!%�%��
�T�Y�9=�=���=�����)-�-���d�&�"&����� c � � t | j � d� � � d� � d � � }|| j k r| j | j f}n|df}| j � d|z � � }|s1t | j � d� � � � }d|d<