config root man

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
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/CodeContext.pyc

³ò
h”Rc@s£dZddkZddklZddkZddklZeddddd	d
ddd
ddgƒZ	dZ
dZeidƒd„Z
ddd„ƒYZdS(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.

iÿÿÿÿN(tidleConf(tmaxinttclasstdefteliftelsetexcepttfinallytfortifttrytwhiletwithidiès^(\s*)(\w*)cCs|i|ƒiƒS((tmatchtgroups(tstc((s//usr/local/lib/python2.5/idlelib/CodeContext.pyt<lambda>stCodeContextcBsÅeZddgfgZeiddddddd	ƒZeiddd
ddddƒZeiddd
ddddƒZd„Zdd„Z
d„Zddd„Zd„Z
d„Zd„ZRS(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|iƒdS(
NtfontiiÿÿÿÿtiRRtvisibleRtboolRs<<toggle-code-context>>(teditwinttextttextfonttNonetlabeltFalsetinfot
topvisibleRt	GetOptionttoggle_code_context_eventtsetvartTruetaftertUPDATEINTERVALttimer_eventtFONTUPDATEINTERVALtfont_timer_event(tselfR"R ((s//usr/local/lib/python2.5/idlelib/CodeContext.pyt__init__"s			
cCsL|ipìti|iid|iddddƒ|_ti|idd|idd	d
ddd
|i	d|id|i
ddddƒ|_|iidddddtddddƒ|iidddddt
ddddd|iiƒn$|iiƒ|iiƒd|_tidddt|idj	ƒƒtiƒdS(NtbgtborderitrelieftsunkenR#s
itanchortwtjustifytleftRtfgitwidthtsidettoptfilltxtexpandtpadxitpadyR.RRR (R&tTkintertFrameR"R@Rt	pad_frametLabelt
context_depthR$RtpackR-R't
status_bartdestroyR%Rt	SetOptionRtSaveUserCfgFiles(R3tevent((s//usr/local/lib/python2.5/idlelib/CodeContext.pyR+7s,
	


	cCs•|iid|d|ƒ}t|ƒ\}}|tjo|}t|ƒt|ƒjp|t|ƒdjo
t}n
t|ƒ}|||fS(sÖGet 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(R3tlinenumR#tspacest	firstwordtopenertindent((s//usr/local/lib/python2.5/idlelib/CodeContext.pyt
get_line_infoQs0
iic
Csï|djpt‚g}t}x¸t||ddƒD] }|i|ƒ\}}}	||jou|}|	djo|d7}n|	o7||jo*||jo|i||||	fƒn||joPq×q7q7W|iƒ||fS(säGet 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.

        iiiÿÿÿÿRR(RR(tAssertionErrorRVtxrangeR\tappendtreverse(
R3tnew_topvisibletstoplinet
stopindenttlinest
lastindentRWR[R#RZ((s//usr/local/lib/python2.5/idlelib/CodeContext.pytget_contextas 

!


cCs±t|iidƒidƒdƒ}|i|jodSn|i|joI|i||iƒ\}}x¹|idd|jo|id=qkWn|i|jo~|iddd}x8|idd|jo|idd}|id=q¾W|i||iddd|ƒ\}}n|ii|ƒ||_dgtd|i	t
|iƒƒ}|g}|i|i	D]}||dq|~7}d	i|ƒ|id
<dS(sKUpdate context information and lines visible in the context pane.

        s@0,0t.iNiÿÿÿÿiRis
R#(
RR#tindextsplitR)RfR(textendtmaxRJRUtjoinR&(R3RaRdReRctcontext_stringst_[1]RB((s//usr/local/lib/python2.5/idlelib/CodeContext.pytupdate_code_context|s.%			&4cCs2|io|iƒn|iit|iƒdS(N(R&RoR#R.R/R0(R3((s//usr/local/lib/python2.5/idlelib/CodeContext.pyR0s
cCs^|id}|io-||ijo||_|i|id<n|iit|iƒdS(NR(R#R&R$R.R1R2(R3tnewtextfont((s//usr/local/lib/python2.5/idlelib/CodeContext.pyR2¢s

	(s!Code Conte_xts<<toggle-code-context>>N(t__name__t
__module__tmenudefsRR*RJRRR4R%R+R\RfRoR0R2(((s//usr/local/lib/python2.5/idlelib/CodeContext.pyRs			!	((t__doc__RFt
configHandlerRtretsysRRVtsetRTR/R1tcompileRSR(((s//usr/local/lib/python2.5/idlelib/CodeContext.pys<module>s

Man Man