• File: calltip.cpython-37.opt-2.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/idlelib/__pycache__/calltip.cpython-37.opt-2.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 3.86 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

YI~d@sddlZddlZddlZddlZddlZddlZddlmZddlm	Z	GdddZ
ddZdZd	Z
d
ZedZdZd
ZdZddZedkrddlmZeddddS)N)	calltip_w)HyperParserc@sXeZdZdddZddZddZddd	Zd
dZdd
ZddZ	ddZ
ddZdS)CalltipNcCs0|dkrd|_n||_|j|_d|_|j|_dS)N)editwintextactive_calltip_make_tk_calltip_window_calltip_window)selfrr4/opt/alt/python37/lib64/python3.7/idlelib/calltip.py__init__szCalltip.__init__cCs
d|_dS)N)r	)r
rrrclosesz
Calltip.closecCst|jS)N)rZ
CalltipWindowr)r
rrrr szCalltip._make_tk_calltip_windowcCs|jr|jd|_dS)N)rZhidetip)r
eventrrrremove_calltip_window$s
zCalltip.remove_calltip_windowcCs|ddS)NTbreak)open_calltip)r
rrrrforce_open_calltip_event)s
z Calltip.force_open_calltip_eventcCs|ddS)NF)r)r
rrrrtry_open_calltip_event.szCalltip.try_open_calltip_eventcCs|jr|jjr|ddS)NF)rZ	tipwindowr)r
rrrrrefresh_calltip_event5szCalltip.refresh_calltip_eventcCs|t|jd}|d}|s&dS||d|}|sDdS|sZ|ddkrZdS||}|sldS||_	|j	
||d|ddS)Ninsert(r)rrrZget_surrounding_bracketsZ	set_indexZget_expressionfind	fetch_tipr	rZshowtip)r
Z	evalfuncsZhpZ	sur_paren
expressionargspecrrrr9s 


zCalltip.open_calltipcCsRy|jjjjj}Wntk
r*d}YnX|rB|dd|fiStt|SdS)NexecZget_the_calltip)	rflistZpyshellZinterprpccltAttributeErrorZ
remotecallget_argspec
get_entity)r
rr rrrrLs

zCalltip.fetch_tip)N)N)__name__
__module____qualname__r
rrrrrrrrrrrrrs
	
rcCs4|r0tjtj}y
t||Stk
r.dSXdS)N)sysmodules__main____dict__eval
BaseException)r	namespacerrrr#es
r#Uz    z(?<=\()\w*\,?\s*zSee source or doczinvalid method signaturez0  # '/' marks preceding args as positional-only.c	
Csy
|j}Wntk
rdSXt|tjr0|n|}ytt|}Wn<tk
r}zt|}|	t
rnt
Sd}Wdd}~XYnXd|krt|ttt
kr|t
7}t|tr|dkrt}t|tkrtj|ttdn|r|gng}t|tjr|j}nt|dd}|rlxZ|dtdtD]B}|}|s:Pt|tkr\|dtdd}||q&Wd|}|p~tS)	N/z())subsequent_indent__doc__
z...)__call__r,
isinstancetypes
MethodTypestrinspectZ	signature	Exception
startswith_invalid_methodlen	_MAX_COLS_argument_positionaltype_default_callable_argspectextwrapwrap_INDENTr3getattrsplit
_MAX_LINESstripappendjoin)	ZobZob_callZfobrerrmsglinesdoclinerrrr"{s<


*
r"r))mainzidlelib.idle_test.test_calltip)	verbosity)r)r;rer'rDr8ZidlelibrZidlelib.hyperparserrrr#r@rIrFcompileZ_first_paramrCr>rAr"r$ZunittestrRrrrr<module>s(S
6