Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
idlelib
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/idlelib/CallTips.pyc
mò ‚=5Dc�������� ���@���s��d��Z��d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�f��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 �f��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(���sP��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. Future plans include extending the functionality to include class attributes. Nt���CallTipsc�����������B���sˆ���t��Z�g��Z�d��d�„�Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z �d�„��Z �d�„��Z�d �e�i �e�i�Z�d �„��Z�d�„��Z�d�„��Z�RS( ���Nc���������C���sL���|�d��j�o�d��|��_��d��Sn�|�|��_��|�i�|��_�d��|��_�|��i�|��_�d��S(���N(���t���editwint���Nonet���selft���textt���calltipt���_make_tk_calltip_windowt���_make_calltip_window(���R���R���(����(����t&���/usr/lib/python2.4/idlelib/CallTips.pyt���__init__���s���� c���������C���s ���d��|��_�d��S(���N(���R���R���R���(���R���(����(����R���t���close ���s����c���������C���s���t��i�|��i�ƒ�S(���N(���t ���CallTipWindowt���CallTipR���R���(���R���(����(����R���R���#���s����c���������C���s(���|��i�o�|��i�i�ƒ��d��|��_�n�d��S(���N(���R���R���t���hidetipR���(���R���(����(����R���t���_remove_calltip_window'���s���� c���������C���sh���|��i�ƒ��|��i�ƒ��}�|��i�|�ƒ�}�|�o8�|��i�i�d�ƒ�|��_�|��i �ƒ��|��_ �|��i �i�|�ƒ�n�d�S(���Nt���insertt����(���R���R���t���get_name_at_cursort���namet ���fetch_tipt���arg_textR���t���indext ���calltip_startR���R���t���showtip(���R���t���eventR���R���(����(����R���t���paren_open_event,���s���� c���������C���s���|��i�ƒ��d�S(���NR���(���R���R���(���R���R���(����(����R���t���paren_close_event6���s���� c���������C���s\���|��i�oN�|��i�i�d�d�|��i�ƒ�p �|��i�i�d�d�|��i�d�ƒ�o�|��i�ƒ��qX�n�d�S(���NR���s���<=t���>s��� lineendR���(���R���R���R���t���compareR���R���(���R���R���(����(����R���t���check_calltip_cancel_event<���s���� <c���������C���s���|��i�ƒ��d�S(���NR���(���R���R���(���R���R���(����(����R���t���calltip_cancel_eventG���s���� s���._c���������C���s`���|��i�}�|��i�i�d�d�ƒ�}�t�|�ƒ�}�x+�|�o#�|�|�d�|�j�o�|�d�8}�q-�W|�|�S(���Ns���insert linestartR���i���(���R���t���_CallTips__IDCHARSt���idcharsR���t���gett���strt���lent���i(���R���R$���R ���R"���(����(����R���R���M���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���R���t���flistt���pyshellt���interpt���rpccltR���t ���remotecallR���t ���get_entityt���entityt���get_arg_text(���R���R���R*���R-���(����(����R���R���U���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( ���R���t���syst���modulest���copyt ���namespacet���updatet���__main__t���__dict__t���evalR���(���R���R���R2���(����(����R���R,���l���s�����(���t���__name__t ���__module__t���menudefsR���R ���R ���R���R���R���R���R���R���t���stringt ���ascii_letterst���digitsR���R���R���R,���(����(����(����R���R�������s��� c���������C���s]���y�|��i�i�SWnH�t�j �o<�x7�|��i�D]'�}�t�|�ƒ�}�|�d��j �o�|�Sq)�q)�Wn�Xd��S(���N( ���t���class_obR ���t���im_funct���AttributeErrort ���__bases__t���baset���_find_constructort���rcR���(���R=���RA���RC���(����(����R���RB���v���s���� � �c��� ������C���s��d�}�|��d�j �od�}�t�|��ƒ�t�i�j�o0�t�|��ƒ�}�|�d�j�o �d�„��}�qŽ�d�}�n0�t�|��ƒ�t�i �j�o�|��i �}�d�}�n�|��}�t�|�ƒ�t�i�t�i�g�j�oæ�yØ�|�i �i�|�|�i �i�!}�|�i�p�g��}�t�t�d�„��|�ƒ�ƒ�}�d�g�t�|�ƒ�t�|�ƒ�|�}�t�d�„��|�|�ƒ�}�|�i �i�d�@o�|�i�d�ƒ�n�|�i �i�d �@o�|�i�d �ƒ�n�d�i�|�ƒ�}�d�|�}�Wq“q“Xn�t�|��d �d�ƒ�}�|�of�|�i�ƒ��}�|�i�d�ƒ�}�|�d�j��p �|�d�j�o �d�}�n�|�o�|�d�7}�n�|�|�|� 7}�qn�|�S(���s:���Get a string describing the arguments for the given objectR���i����c�����������C���s���d��S(���N(���R���(����(����(����R���t���<lambda>Š���s����i���c���������C���s���d�|��S(���Ns���=%s(���R���(���R���(����(����R���RD���™���s����c���������C���s���|��|�S(���N(���t���argt���dflt(���RE���RF���(����(����R���RD���›���s����i���s���...i���s���***s���, s���(%s)t���__doc__s��� iF���N(���t���argTextt���obR���t ���argOffsett���typet���typest ���ClassTypeRB���t���fobt ���MethodTypeR>���t���FunctionTypet ���LambdaTypet ���func_codet���co_varnamest���co_argcountt���realArgst ���func_defaultst���defaultst���listt���mapR#���t���itemst���co_flagst���appendt���joint���getattrt���doct���lstript���findt���pos( ���RI���RW���RZ���Rb���RU���RJ���RH���RN���R_���(����(����R���R.������sL����� ! R4���c�����������C���s���d�S(���s���()N(����(����(����(����R���t���t1¶���s����c���������C���s���d�S(���s���(a, b=None)N(����(���t���at���b(����(����R���t���t2·���s����c���������G���s���d�S(���s���(a, ...)N(����(���Rd���t���args(����(����R���t���t3¸���s����c����������G���s���d�S(���s���(...)N(����(���Rg���(����(����R���t���t4¹���s����c���������G���s���d�S(���s���(a, ...)N(����(���Rd���Rg���(����(����R���t���t5º���s����c���������O���s���d�S(���s���(a, b=None, ..., ***)N(����(���Rd���Re���Rg���t���kw(����(����R���t���t6»���s����t���TCc�����������B���sV���t��Z�d��Z�e�d�„�Z�d�„��Z�e�d�„�Z�d�„��Z�d�„��Z�d�„��Z �e�d�„�Z �RS(���s ���(a=None, ...)c���������G���s���d�S(���s ���(a=None, ...)N(����(���R���Rd���Re���(����(����R���R ���¿���s����c���������C���s���d�S(���s���()N(����(���R���(����(����R���Rc���À���s����c���������C���s���d�S(���s���(a, b=None)N(����(���R���Rd���Re���(����(����R���Rf���Á���s����c���������G���s���d�S(���s���(a, ...)N(����(���R���Rd���Rg���(����(����R���Rh���Â���s����c���������G���s���d�S(���s���(...)N(����(���R���Rg���(����(����R���Ri���Ã���s����c���������G���s���d�S(���s���(a, ...)N(����(���R���Rd���Rg���(����(����R���Rj���Ä���s����c���������O���s���d�S(���s���(a, b=None, ..., ***)N(����(���R���Rd���Re���Rg���Rk���(����(����R���Rl���Å���s����(���R7���R8���RG���R���R ���Rc���Rf���Rh���Ri���Rj���Rl���(����(����(����R���Rm���½���s���� c���������C���s¡���t��ƒ��}�g��}�xp�|��D]h�}�|�i�d�|�i�}�|�i�}�|�i �|�ƒ�}�|�|�j�o)�|�i�|�ƒ�d�|�|�t�t �ƒ�f�GHq�q�Wd�t�|�ƒ�t�|��ƒ�f�GHd��S(���Ns��� s���%s - expected %s, but got %ss���%d of %d tests failed(���R����t���ctt���failedt���testst���tRG���t���expectedR7���R���R���R���R\���R.���R-���R#���(���Rp���R���Ro���Rq���R���Rr���Rn���(����(����R���t���testÇ���s���� � (���RG���R/���R:���RL���R���R4���R����RB���R.���R7���Rc���R���Rf���Rh���Ri���Rj���Rl���Rm���Rs���t���tcRp���(���R:���R����Rl���Ri���Rj���Rf���Rh���Rc���R/���Rt���Rp���RB���R4���Rs���R���Rm���RL���R.���(����(����R���t���? ���s(��� d 3 ?