python (3.11.7)

(root)/
lib/
python3.11/
idlelib/
__pycache__/
calltip.cpython-311.pyc

ecdZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
GddZdZdZ
d	Zd
ZejdZdZd
ZdZedkrddlmZedddSdS)zPop 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)HyperParsercHeZdZddZdZdZddZdZdZdZ	d	Z
d
ZdS)CalltipNch|	d|_dS||_|j|_d|_|j|_dSN)editwintextactive_calltip_make_tk_calltip_window_calltip_window)selfr	s  C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/idlelib/calltip.py__init__zCalltip.__init__s;?DLLL"DLDI"&D#'#?D   cd|_dSr)r
rs rclosez
Calltip.closes#rc4tj|jSr)r
CalltipWindowr
rs rrzCalltip._make_tk_calltip_window s&ty111rcX|jr"|jd|_dSdSr)rhidetiprevents  rremove_calltip_windowzCalltip.remove_calltip_window$s:	''')))"&D	'	'rc0|ddS)z9The user selected the menu entry or hotkey, open the tip.Tbreakopen_calltiprs  rforce_open_calltip_eventz Calltip.force_open_calltip_event)s$wrc0|ddS)zHappens 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.
        FNrrs  rtry_open_calltip_eventzCalltip.try_open_calltip_event.s
	
%     rc^|jr#|jjr|ddSdSdS)NF)r	tipwindowrrs  rrefresh_calltip_eventzCalltip.refresh_calltip_event5sH	%4#6#@	%e$$$$$	%	%	%	%rct|jd}|d}|s|dS|jrQtt|dd\}}||f|jj|jj	fkrdS|
|d	|}n#t$rd}YnwxYw|sdS||s|
ddkrdS||}|sdS||_|j||d|ddS)zMaybe close an existing calltip and maybe open a new calltip.

        Called from (force_open|try_open|refresh)_calltip_event functions.
        insert(Nr.)rr	get_surrounding_bracketsrrmapintsplit	parenlineparencol	set_indexget_expression
ValueErrorfind	fetch_tipr
showtip)r	evalfuncshp	sur_parenopener_line
opener_col
expressionargspecs        rrzCalltip.open_calltip9s
x
0
0//44		&&(((F	&)#y|/A/A#/F/F&G&G#Kj)$.0C0LMNN
Yq\"""	**,,JJ			JJJ		
F	
""$$$	jooc22b88F..,,	F"2244##GYq\9Q<HHHHHs7CCCc	|jjjjj}n#t
$rd}YnwxYw|r|dd|fiStt|S)aDReturn the argument list and docstring of a function or class.

        If there is a Python subprocess, get the calltip there.  Otherwise,
        either this fetch_tip() is running in the subprocess or it was
        called in an IDLE running without the subprocess.

        The subprocess environment is that of the most recently run script.  If
        two unrelated modules are being edited some calltips in the current
        module may be inoperative if the module was not the last to run.

        To find methods, fetch_tip must be fed a fully qualified name.

        Nexecget_the_calltip)	r	flistpyshellinterprpccltAttributeError
remotecallget_argspec
get_entity)rr=rEs   rr6zCalltip.fetch_tipls	\'/6=FF			FFF		7$$V->&0]B88
8z*55666s--r)__name__
__module____qualname__rrrrr r"r%rr6rrrrs@@@@$$$222''''

!!!%%%1I1I1If77777rrc|r<itjtj}	t	||S#t
$rYdSwxYwdS)zwReturn the object corresponding to expression evaluated
    in a namespace spanning sys.modules and __main.dict__.
    N)sysmodules__main____dict__eval
BaseException)r=	namespaces  rrIrIsc8s{8h&78		
I...			44		s.
<<Uz    z(?<=\()\w*\,?\s*zSee source or doczinvalid method signaturec	|j}n#t$rYdSwxYwt|tjr|n|}	tt
j|}nN#t$rA}t|}|	trtcYd}~Sd}Yd}~nd}~wwxYwt|tr
|dkrt}t|tkr!tj|tt"n|r|gng}t
j|}|r|dt(dt(D]\}|}|snCt|tkr|dtdz
dz}||]d|}|ptS)aReturn a string describing the signature of a callable object, or ''.

    For Python-coded functions and methods, the first line is introspected.
    Delete 'self' parameter for classes (.__init__) and bound methods.
    The next lines are the first lines of the doc string up to the first
    empty line or _MAX_LINES.    For builtins, this typically includes
    the arguments in addition to the return value.
    Nz())subsequent_indent
z...)__call__rT
isinstancetypes
MethodTypestrinspect	signature	Exception
startswith_invalid_methodtype_default_callable_argspeclen	_MAX_COLStextwrapwrap_INDENTgetdocr/
_MAX_LINESstripappendjoin)	obob_callfobr>errmsglinesdoclines	         rrHrHs+rr )9::
B''Cg',,--#hh>>/**	"""""""GGGGGG#t,D+Gy((]7I
I
I
I
I;B.Jwii
.

C
IIdJ//<		D::<<D
4yy9$$Oi!mO,u4LLiiG///s/

!A
B'&/B"B'B""B'rQ)mainzidlelib.idle_test.test_calltip)	verbosity)__doc__rQrbrerOrkr_idlelibridlelib.hyperparserrrrIrjrormcompile_first_paramrhrfrHrJunittestr{rMrr<module>rs,				



++++++p7p7p7p7p7p7p7p7f
	


rz-../,.0.0.0bzD	)Q777777r