403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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 :  /Python315/Lib/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/idlelib/__pycache__/calltip_w.cpython-315.pyc
R
>lqjuc��Qs]QHGsGsGsGs]QHGsQsQs	Qs
Qs]dsQs
QQ\2sQs\Q	6Xc"]Q
HDGs\Q]P
Q5]Q
HLGs\\2P!P!)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<<calltipwindow-checkhide>>�calltipwindowregion_rightc�``�\sQs]snQsU1QksQsU1QksU1QksQs	Q
Qks
QsU1Q	ksQ
s
QsQsUsU9s!)�
CalltipWindowz+A call-tip widget for tkinter text widgets.c�:�[RU_U2P9UmUmP9Um9UmUmP9UmUmPUm	P!)zmCreate a call-tip; shown by showtip().

text_widget: a Text widget with code for which call-tips are desired
)
�super�__init__�label�text�	parenline�parencol�lastline�hideid�checkhideid�checkhide_after_id)�self�text_widget�	__class__s&&��&C:\Python315\\Lib\idlelib\calltip_w.pyr�CalltipWindow.__init__sL���	����%�!%�%��
�T�Y�9=�=���=�����)-�-���d�&�"&���c���[UOOQ2OQ2]*2oVO6XcUOUO
1oLU]1oUOO
QU*2oU%f/[UOO
Q22o]U]$]U]$U]*]*U]*U]**1!)z$Choose the position of the call-tip.�insert�.z%d.%d)�int�
anchor_widget�index�splitrr�bbox�list)r�curline�anchor_index�boxs&   r�get_position�CalltipWindow.get_position#s����d�(�(�.�.�x�8�>�>�s�C�A�F�G���n�n�$� �N�N�D�M�M�:�L�#�Q�<�L�� � �%�%�g��&<�=����t�)�)�.�.�x�8�9�C��C��F��C��F��1�v��z�3�q�6�C��F�?�*�*rc�:�[UOOQ2OQ2]*2oVO6XcP!VmUOOQ2[RU_2P!)z Reposition the window if needed.rr)rrrr r�seer
�position_window)rr#rs& �rr*�CalltipWindow.position_window2s_����d�(�(�.�.�x�8�>�>�s�C�A�F�G���m�m�#���
������x�(�
���!rc�h:�VmUO%fUO%fP!UOO[U2[[UOOU2OQ22vUm	Um
[RU_12UO2P!)a7Show the call-tip, bind events which will close it and reposition it.

text: the text to display in the call-tip
parenleft: index of the opening parenthesis in the text widget
parenright: index of the closing parenthesis in the text widget,
            or the end of the line if there is no closing parenthesis
r)r
�	tipwindowr�mark_set�
MARK_RIGHT�maprrr rrr
�showtip�_bind_events)rr
�	parenleft�
parenrightrs&&&&�rr1�CalltipWindow.showtip;s�����	��>�>�>���������#�#�J�
�;�(+���#�#�)�)�)�4�:�:�3�?�)A�%����
�	�������rc���[UOUO[QQ[]UO
Q*Q5UmUOO2P!)zCreate the call-tip widget.z#ffffd0�black�font)r
�justify�
background�
foreground�relief�borderwidthr8)rr-r
rrrr�pack)rs&r�showcontents�CalltipWindow.showcontentsPsD���4�>�>��	�	�4�&/�G�"'�Q� $� 2� 2�6� :�<��
�	
�
�
���rc�Z�UO%fP![[UOO	Q2OQ22vq#V O6fHV O6XcV0O6:f(UOOQQ[2%cUO2Q!UO2UOd&UOOUO2UOO[UO 2UmP!)z4Handle CHECK_HIDE_EVENT: call hidetip or reschedule.rr�>�break)r-r0rrrr rr�comparer/�hidetipr*r�after_cancel�after�CHECKHIDE_TIME�checkhide_event)r�eventr#�curcols&&  rrI�CalltipWindow.checkhide_eventXs����~�~�~���c�4�#5�#5�#;�#;�H�#E�#K�#K�C�#P�Q����^�^�#��~�~�%�&�M�M�*A����%�%�h��Z�@�@��L�L�N��	
�����"�"�.����+�+�D�,C�,C�D����$�$�^�T�5I�5I�J�	
��rc�P�UO%fP!UO2Q!)z%Handle HIDE_EVENT by calling hidetip.rC)r-rE)rrJs&&r�
hide_event�CalltipWindow.hide_eventss���~�~�~������rc�:�UO%fP!UOO2PUmP9Um9UmUmUOO[2UO2[RU_52P![cKjh9h[cK?h9h[[1cKEh9h)zHide the call-tip.)r-r�destroyrrrrr�
mark_unsetr/�_unbind_events�
ValueErrorr
rE)rrs&�rrE�CalltipWindow.hidetip{s�����~�~�~��	��J�J��� ���
�9=�=���=�����	����)�)�*�5�	����!�
	�����!�	��	���	��	��
�*�%�	��	�sG�B�B �/B1�	B�B�B� 	B.�*B.�-B.�1C�C�Cc���UOO[UO2Um[
FD#oUOO
[U2J%	UOO[UO2UOO[UO2Um[FD#oUOO
[U2J%	P!)zBind event handlers.)
r�bind�CHECKHIDE_EVENTrIr�CHECKHIDE_SEQUENCES�	event_addrGrH�
HIDE_EVENTrNr�HIDE_SEQUENCES�r�seqs& rr2�CalltipWindow._bind_events�s����-�-�2�2�?�37�3G�3G�I���&�&�C����(�(��#�>�'���� � ���1E�1E�F��(�(�-�-�j�.2�o�o�?���!�>�C����(�(��S�9�"rc��[FD#oUOO[U2J%	UOO	[UO
2PUm[FD#oUOO[U2J%	UOO	[UO2PUmP!)zUnbind event handlers.)	rYr�event_deleterX�unbindrr\r[rr]s& rrS�CalltipWindow._unbind_events�s���&�&�C����+�+�O�S�A�'����!�!�/�4�3C�3C�D����!�>�C����+�+�J��<�"����!�!�*�d�k�k�:���r)rrrrrrrr
�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr&r*r1r?rIrNrEr2rS�__static_attributes__�__classdictcell__�
__classcell__)r�
__classdict__s@@rrrs?����5�'�
+�"��*��6��2
:�	�	rrc�h`�]QHGoGoGoGoUU2oUOQ2[
[UO2OQ2Q*2vqgUOQU]�*U]�*1*2UU2oUOV4]Q5UOQQ2UO2[U2nU1Q	ko	U1Q
ko
UOQQ2UOQ
Q2UOQU	2UOQ
U
2UO!2P!)�)�Toplevel�Textr�BOTHzTest call-tips�+:�NNz
250x100+%d+%d)�side�fill�expandrzstring.splitc�0:�ROQQQ2P!)z(s='Hello world')r�end)r1�rJ�calltips&�r�calltip_show�%_calltip_window.<locals>.calltip_show�s������+�X�u�=rc�*:�RO2P!rd)rErzs&�r�calltip_hide�%_calltip_window.<locals>.calltip_hide�s
������rz<<calltip-show>>�(z<<calltip-hide>>�))�tkinterrprqrrr�titler0r�geometryr r>r�updaterrZrW�	focus_set)�parentrprqrrr�top�x�yr
r|rr{s&          @r�_calltip_windowr��s����2�2�
�6�
�C��I�I����s�F�O�O�%�+�+�C�0��4�5�D�A��L�L��A��G�Q��W�#5�5�6���9�D��I�I�4�1�I�-��K�K��.�)��J�J�L��D�!�G�>���N�N�%�s�+��N�N�%�s�+��I�I� �,�/��I�I� �,�/��N�N�r�__main__)�mainz idlelib.idle_test.test_calltip_w)�	verbosity�exit)�run)z<Key-Escape>z
<FocusOut>)z<KeyRelease>z<ButtonRelease>)rir�rrrr�idlelib.tooltiprr[r\rXrYrHr/rr�re�unittestr��idlelib.idle_test.htestr��rr�<module>r�sr���
1�0�'�
%�
�/��/��9����
(�
�V�K�V�r�2�z����	+�q�u�E�+����r

Youez - 2016 - github.com/yon3zu
LinuXploit