AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python35/lib64/python3.5/idlelib/__pycache__/ |
Current File : //proc/self/root/opt/alt/python35/lib64/python3.5/idlelib/__pycache__/ToolTip.cpython-35.pyc |
��Yfe � @ 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 � 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/python35/lib64/python3.5/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 | � 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&