Your IP : 3.146.255.161
�
f fe � @ s� d d l TGd d � d � Z Gd d � d e � Z Gd d � d e � Z d d � Z e d
k r~ d d l m Z e e � n d S)
� )�*c @ sy e Z d Z d d � Z d d d � Z d d d � Z d d � Z d
d � Z d d
� Z d d d � Z d d � Z
d S)�ToolTipBasec C s� | | _ d | _ d | _ d | _ | _ | j j d | j � | _ | j j d | j � | _ | j j d | j � | _
d S)Nr z<Enter>z<Leave>z
<ButtonPress>)�button� tipwindow�id�x�yZbind�enterZ_id1�leaveZ_id2Z_id3)�selfr � r �4/opt/alt/python34/lib64/python3.4/idlelib/ToolTip.py�__init__
s zToolTipBase.__init__Nc C s | j � d S)N)�schedule)r �eventr r r
r s zToolTipBase.enterc C s | j � | j � d S)N)�
unschedule�hidetip)r r r r r
r
s
zToolTipBase.leavec C s) | j � | j j d | j � | _ d S)Ni� )r r �after�showtipr )r r r r
r s
zToolTipBase.schedulec C s/ | j } d | _ | r+ | j j | � n d S)N)r r Zafter_cancel)r r r r r
r s zToolTipBase.unschedulec C s� | j r
d S| j j � d } | j j � | j j � d } t | j � | _ } | j d � | j d | | f � | j � d S)N� � z+%d+%d) r r Zwinfo_rootxZwinfo_rootyZwinfo_heightZToplevelZwm_overrideredirectZwm_geometry�showcontents)r r r �twr r r
r $ s
zToolTipBase.showtipzYour text herec C s; t | j d | d t d d d t d d �} | j � d S)N�textZjustify�
backgroundz#ffffe0ZreliefZborderwidthr )�Labelr ZLEFTZSOLID�pack)r r �labelr r r
r 2 s zToolTipBase.showcontentsc C s) | j } d | _ | r% | j � n d S)N)r Zdestroy)r r r r r
r 8 s zToolTipBase.hidetip)�__name__�
__module__�__qualname__r r r
r r r r r r r r r
r s r c @ s( e Z d Z d d � Z d d � Z d S)�ToolTipc C s t j | | � | | _ d S)N)r r r )r r r r r r
r ? s zToolTip.__init__c C s t j | | j � d S)N)r r r )r r r r
r B s zToolTip.showcontentsN)r r r r r r r r r
r! >