관리-도구
편집 파일: calltip.cpython-36.opt-2.pyc
3 ��2a� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl Z G dd� d�Z dd� ZdZd Z dZejd�Zd ZdZdZdd� Zedkr�d dlmZ eddd� dS )� N)� calltip_w)�HyperParserc @ sX e Zd Zddd�Zdd� Zdd� Zddd �Zd d� Zdd � Zdd� Z dd� Z dd� ZdS )�CalltipNc C s0 |d krd | _ n|| _ |j| _d | _| j| _d S )N)�editwin�text�active_calltip�_make_tk_calltip_window�_calltip_window)�selfr � r �,/opt/alt/python36/lib64/python3.6/calltip.py�__init__ s zCalltip.__init__c C s d | _ d S )N)r )r r r r �close s z Calltip.closec C s t j| j�S )N)r Z CalltipWindowr )r r r r r s zCalltip._make_tk_calltip_windowc C s | j r| j j� d | _ d S )N)r Zhidetip)r �eventr r r �_remove_calltip_window$ s zCalltip._remove_calltip_windowc C s | j d� dS )NT�break)�open_calltip)r r r r r �force_open_calltip_event) s z Calltip.force_open_calltip_eventc C s | j d� d S )NF)r )r r r r r �try_open_calltip_event. s zCalltip.try_open_calltip_eventc C s | j r| j jr| jd� d S )NF)r Z tipwindowr )r r r r r �refresh_calltip_event5 s zCalltip.refresh_calltip_eventc C s� | j � t| jd�}|jd�}|s&d S |j|d � |j� }|sDd S | r\|jd�dkr\d S | j|�}|snd S | j� | _ | j j ||d |d � d S )N�insert�(r � ���)r r r Zget_surrounding_bracketsZ set_indexZget_expression�find� fetch_tipr r Zshowtip)r Z evalfuncsZhpZ sur_paren� expression�argspecr r r r 9 s zCalltip.open_calltipc C sR y| j jjjj}W n tk r* d }Y nX |rB|jdd|fi �S tt|��S d S )N�execZget_the_calltip) r �flistZpyshellZinterp�rpcclt�AttributeErrorZ remotecall�get_argspec� get_entity)r r r r r r r L s zCalltip.fetch_tip)N)N)�__name__� __module__�__qualname__r r r r r r r r r r r r r r s r c C s>