ecSrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSK J r "SS5r Sr Sr S rS r\R "S 5rS rS rSr\S:XaSSKJr \"SSS9 gg)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) HyperParsercR\rSrSrS SjrSrSrS SjrSrSr S r S r S r S r g)CalltipNcxUcSUlgXlURUlSUlURUlgN)editwintextactive_calltip_make_tk_calltip_window_calltip_window)selfr s 5/opt/imh/python3.13/lib/python3.13/idlelib/calltip.py__init__Calltip.__init__s4 ?DL"L DI"&D #'#?#?D cSUlgr )rrs rclose Calltip.closes #rcB[R"UR5$r )r CalltipWindowr rs rr Calltip._make_tk_calltip_window s&&tyy11rcjUR(a"URR5 SUlggr )r hidetiprevents rremove_calltip_windowCalltip.remove_calltip_window$s*       ' ' )"&D  rc&URS5 g)z9The user selected the menu entry or hotkey, open the tip.Tbreak open_calltiprs rforce_open_calltip_event Calltip.force_open_calltip_event)s $rc&URS5 g)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. FNr#rs rtry_open_calltip_eventCalltip.try_open_calltip_event.s % rcUR(a.URR(aURS5 ggg)NF)r tipwindowr$rs rrefresh_calltip_eventCalltip.refresh_calltip_event5s0   4#6#6#@#@   e $$A rc[URS5nURS5nU(dUR5 gUR(aV[ [ USRS55upEXE4URRURR4:XagURUS5 UR5nU(dgUR5 U(dURS5S:wagURU5nU(dgUR5UlURR!XsSUS5 g![a SnNf=f)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_bracketsrr mapintsplit parenlineparencol set_indexget_expression ValueErrorfind fetch_tiprshowtip)r evalfuncshp sur_paren opener_line opener_col expressionargspecs rr$Calltip.open_calltip9s> x 0//4   & & (    &)#y|/A/A#/F&G #K)$$..0C0C0L0LMN Yq\" **,J  ""$jooc2b8 .., "224 ##Gq\9Q<H/ J s<E E! E!cURRRRRnU(aUR SSU405$[[U55$![ a SnN>f=f)aReturn 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 remotecall get_argspec get_entity)rrErNs rr>Calltip.fetch_tiplst \\''//66==F $$V->&0]B8 8z*56 6  F s4A&& A54A5)rr r r r )__name__ __module__ __qualname____firstlineno__rrr rr%r(r,r$r>__static_attributes__rrrrs2@$2'  !%1If7rrcU(a.0[RE[REn[ X5$g![ a gf=f)zoReturn the object corresponding to expression evaluated in a namespace spanning sys.modules and __main.dict__. N)sysmodules__main____dict__eval BaseException)rE namespaces rrRrRsK8s{{8h&7&78   . .  s 7 AAUz z(?<=\()\w*\,?\s*zSee source or doczinvalid method signatureclURn[U[R5(aUOUn[ [ R"U55n[U[5(a US:Xa[n[U5[:a[R "U[["S9O U(aU/O/n[ R$"U5nU(apUR'S[(5S[(HOnUR+5nU(d O7[U5[:aUS[S- S-nUR-U5 MQ SR/U5nU=(d [$![a gf=f![a=n[ U5nUR[5(a [sSnA$SnSnAGN]SnAff=f)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__r` isinstancetypes MethodTypestrinspect signature Exception startswith_invalid_methodtype_default_callable_argspeclen _MAX_COLStextwrapwrap_INDENTgetdocr7 _MAX_LINESstripappendjoin) obob_callfobrFerrmsglinesdoclines rrQrQs_++ )9)9::'Cg'',-#tD+G y(]]7I I;Bwi  .. C IIdJ/ >/ * *" "G s4 EE, E)(E), F36*F. F3&F..F3r])mainzidlelib.idle_test.test_calltip) verbosity)__doc__r]rnrer[rwrkidlelibridlelib.hyperparserrrrRrvr{rycompile _first_paramrtrrrQrTunittestrrYrrrs   +p7p7f    zz-. /,.0b z )Q7r