Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/CallTips.pyc |
³ò h”Rc @ s* d Z d d k Z d d k Z d d k Z d d k l Z d d k Z d d d „ ƒ YZ d „ Z d „ Z e d j o® d „ Z d d „ Z d „ Z d „ Z d „ Z d d „ Z d d d „ ƒ YZ d „ Z e ƒ Z e e e e e e e e i e i e i e i e i e i f Z e e ƒ n d S( s CallTips.py - An IDLE Extension to Jog Your Memory 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. iÿÿÿÿN( t HyperParsert CallTipsc B sz e Z d d g f g Z d d „ Z d „ Z d „ Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( t edits Show call tips <<force-open-calltip>>c C sL | d j o d | _ d Sn | | _ | i | _ d | _ | i | _ d S( N( t Nonet editwint textt calltipt _make_tk_calltip_windowt _make_calltip_window( t selfR ( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyt __init__ s c C s d | _ d S( N( R R ( R ( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyt close s c C s t i | i ƒ S( N( t CallTipWindowt CallTipR ( R ( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyR # s c C s( | i o | i i ƒ d | _ n d S( N( R t hidetipR ( R t event( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyt _remove_calltip_window' s c C s | i t ƒ d S( si Happens when the user really wants to open a CallTip, even if a function call is needed. N( t open_calltipt True( R R ( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyt force_open_calltip_event, s c C s | i t ƒ d S( sª Happens when it would be nice to open a CallTip, but not really neccesary, for example after an opening bracket, so function calls won't be made. N( R t False( R R ( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyt try_open_calltip_event2 s c C s/ | i o! | i i ƒ o | i t ƒ n d S( si If there is already a calltip window, check if it is still needed, and if so, reload it. N( R t is_activeR R ( R R ( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyt refresh_calltip_event9 s c C sÔ | i ƒ t | i d ƒ } | i d ƒ } | p d Sn | i | d ƒ | i ƒ } | p | o | i d ƒ d j o d Sn | i | ƒ } | p d Sn | i ƒ | _ | i i | | d | d ƒ d S( Nt insertt (i iÿÿÿÿi ( R R R t get_surrounding_bracketst set_indext get_expressiont findt fetch_tipR R t showtip( R t evalfuncst hpt sur_parent namet arg_text( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyR @ s &c C sj y | i i i i i } Wn d } n X| o | i d d | f h ƒ Sn | i | ƒ } t | ƒ Sd S( s Return the argument list and docstring of a function or class If there is a Python subprocess, get the calltip there. Otherwise, either fetch_tip() is running in the subprocess itself or it was called in an IDLE EditorWindow before any script had been run. 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. t exect get_the_calltipN( R t flistt pyshellt interpt rpccltR t remotecallt get_entityt get_arg_text( R R# R* t entity( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyR Q s c C sM | oB t i i ƒ } | i t i ƒ y t | | ƒ SWqI d SqI Xn d S( sA Lookup name in a namespace spanning sys.modules and __main.dict__N( t syst modulest copyt updatet __main__t __dict__t evalR ( R R# t namespace( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyR, h s ( s Show call tips <<force-open-calltip>>N( t __name__t __module__t menudefsR R R R R R R R R R R, ( ( ( s, /usr/local/lib/python2.5/idlelib/CallTips.pyR s c C s] y | i i SWnH t j o<