3 § f³ ã @ s° d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl Z G dd„ dƒZdd„ Zd Z d ZdZejd ƒZdZdZdZdd„ Zedkr¬ddlmZ eddd� dS )zúPop up a reminder of how to call a function. Call Tips are floating windows which display function, class, and method parameter and docstring information when you type an opening parenthesis, and which disappear when you type a closing parenthesis. é 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 ú4/opt/alt/python36/lib64/python3.6/idlelib/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 )z9The user selected the menu entry or hotkey, open the tip.TÚbreak)Úopen_calltip)r r r r r Úforce_open_calltip_event) s z Calltip.force_open_calltip_eventc C s | j dƒ dS )zªHappens when it would be nice to open a calltip, but not really necessary, for example after an opening bracket, so function calls won't be made. FN)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