관리-도구
편집 파일: CallTipWindow.cpython-33.pyc
� ��f c @ s� d Z d d l Td Z d Z d Z d Z d Z d Z Gd d � d � Z Gd d � d � Z d d � Z e d k r| e � n d S( u� A CallTip window class for Tkinter/IDLE. After ToolTip.py, which uses ideas gleaned from PySol Used by the CallTips IDLE extension. i ( u *u <<calltipwindow-hide>>u <Key-Escape>u <FocusOut>u <<calltipwindow-checkhide>>u <KeyRelease>u <ButtonRelease>id u calltipwindowregion_rightc B sk | Ee Z d Z d d � Z d d � Z d d � Z d d d � Z d d � Z d d � Z d d � Z d S( u CallTipc C sO | | _ d | _ | _ d | _ | _ d | _ d | _ | _ d | _ d S( N( u widgetu Noneu tipwindowu labelu parenlineu parencolu lastlineu hideidu checkhideidu checkhide_after_id( u selfu widget( ( u: /opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyu __init__ s u CallTip.__init__c C s( t | j j d � j d � d � } | | j k r8 d S| | _ | j j d � | | j k r� | j j d | j | j f � } n | j j d | � } | s� t | j j d � � } d | d <d | d <n | d | j j � d } | d | d | j j � } | j j d | | f � d S( u; Check if needs to reposition the window, and if so - do it.u insertu .i Nu %d.%du %d.0i i i u +%d+%d( u intu widgetu indexu splitu lastlineu seeu parenlineu bboxu parencolu listu winfo_rootxu winfo_rootyu tipwindowu wm_geometry( u selfu curlineu boxu xu y( ( u: /opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyu position_window s % u CallTip.position_windowc C s� | | _ | j s | j r d S| j j t | � t t | j j | � j d � � \ | _ | _ t | j � | _ } | j � | j d � y# | j j d d | j d d � Wn t k r� Yn Xt | d | j d t d d d t d d d | j d �| _ | j j � | j j t | j � | _ x! t D] } | j j t | � q4W| j j t | j � | j j t | j � | _! x! t"