GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux SamCT211 4.4.302+ #86009 SMP Wed Nov 26 18:19:20 CST 2025 x86_64
nginx/1.23.1
192.168.4.211
/
volume1
/
@appstore
/
Python3.9
/
usr
/
lib
/
python3.9
/
idlelib
/
__pycache__
[ HOME ]
Exec
Submit
File Name : tooltip.cpython-39.opt-1.pyc
a h� � @ s| d Z ddlT G dd� d�ZG dd� de�ZG dd� de�Zd d � ZedkrxddlmZ ed ddd� ddl m Z e e� dS )z�Tools for displaying tool-tips. This includes: * an abstract base-class for different kinds of tooltips * a simple text-only Tooltip class � )�*c @ sH e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dS )�TooltipBasez abstract base class for tooltipsc C s || _ d| _dS )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 � r �2/tmp/_install/usr/lib/python3.9/idlelib/tooltip.py�__init__ s zTooltipBase.__init__c C s | � � d S )N��hidetip�r r r r �__del__ s zTooltipBase.__del__c C sz | j r dS t| j� | _ }|�d� z|j�dd|jdd� W n tyP Y n0 | �� | � � | j � � | j �� dS )zdisplay the tooltipN� z!::tk::unsupported::MacWindowStyleZstyle�helpZnoActivates)r �Toplevelr Zwm_overrideredirectZtk�callZ_w�TclError�position_window�showcontentsZupdate_idletasksZlift�r Ztwr r r �showtip s � zTooltipBase.showtipc C s@ | � � \}}| j�� | }| j�� | }| j�d||f � dS )z&(re)-set the tooltip's screen position�+%d+%dN)�get_positionr Zwinfo_rootxZwinfo_rootyr Zwm_geometry)r �x�yZroot_xZroot_yr r r r / s zTooltipBase.position_windowc C s d| j �� d fS )z(choose a screen position for the tooltip� r )r Zwinfo_heightr r r r r 6 s zTooltipBase.get_positionc C s t �dS )z$content display hook for sub-classesN)�NotImplementedErrorr r r r r A s zTooltipBase.showcontentsc C s4 | j }d| _ |r0z|�� W n ty. Y n0 dS �zhide the tooltipN)r Zdestroyr r r r r r F s zTooltipBase.hidetipN)�__name__� __module__�__qualname__�__doc__r r r r r r r r r r r r s r c s^ e Zd ZdZd� fdd� Z� fdd�Zddd �Zdd d�Zdd � Zdd� Z � fdd�Z � ZS )�OnHoverTooltipBasez?abstract base class for tooltips, with delayed on-hover display�� c sV t t| ��|� || _d| _| j�d| j�| _| j�d| j �| _ | j�d| j �| _dS )aq Create 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"