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/MultiCall.pyo

³ò
h”Rc$@s¿dZddkZddkZddkZddkZddkZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdYZdZZd[Zd\Z d]Z!d^Z"ei#djo;ei$i%dƒo(d_d`dadbfZ&eee!e"fZ'n%dcdddedffZ&eeee fZ'e(gZ)e*e+e&ƒƒD]$Z,e&e,D]Z-e)e-e,fq‡qy[)ƒZ.d#dgd$„ƒYZ/e*de+e&ƒ>ƒZ0gZ1e0D]bZ2e1e3d%„gZ4e*e+e&ƒƒD],Z5de5>e2@oe4e&e5dd&qq[4d'ƒqÝ[1Z6e7d(„e0ƒZ8x$e8D]Z9e9i:d)„d*„ƒqaWgZ;e0D]ZZ2e;e3d+„gZ<e*e+e&ƒƒD]$Z5de5>e2@oe<e'e5qµqµ[<dƒqŒ[;Z=d,dhd-„ƒYZ>didjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dfZ?e>fde/fe+e?ƒdZ@e(gZAe*e+e?ƒƒD]$Z,e?e,D]Z-eAe-e,fq—q‰[AƒZBeiCdGƒZDeiCdHƒZEdI„ZFdJ„ZGhZHdK„ZIeJdLjo¶eiKƒZLeIeiMƒeLƒZNeNiOƒdgdM„ZPePdNƒePdOƒePdPƒePdQƒePdRƒePdSƒePdTƒePdUƒePdVƒePdWƒePdXƒeLiQƒndS(€s˜
MultiCall - a class which inherits its methods from a Tkinter widget (Text, for
example), but enables multiple calls of functions per virtual event - all
matching events will be called, not only the most specific one. This is done
by wrapping the event functions - event_add, event_delete and event_info.
MultiCall recognizes only a subset of legal event sequences. Sequences which
are not recognized are treated by the original Tk handling mechanism. A
more-specific event will be called before a less-specific event.

The recognized sequences are complete one-event sequences (no emacs-style
Ctrl-X Ctrl-C, no shortcuts like <3>), for all types of events.
Key/Button Press/Release events can have modifiers.
The recognized modifiers are Shift, Control, Option and Command for Mac, and
Control, Alt, Shift, Meta/M for other platforms.

For all events which were handled by MultiCall, a new member is added to the
event instance passed to the binded functions - mc_type. This is one of the
event type constants defined in this module (such as MC_KEYPRESS).
For Key/Button events (which are handled by MultiCall and may receive
modifiers), another member is added - mc_state. This member gives the state
of the recognized modifiers, as a combination of the modifier constants
also defined in this module (for example, MC_SHIFT).
Using these members is absolutely portable.

The order by which events are called is defined by these rules:
1. A more-specific event will be called before a less-specific event.
2. A recently-binded event will be called before a previously-binded event,
   unless this conflicts with the first rule.
Each function will be called at most once for each event.
iÿÿÿÿNiiiiiiiiii	i
iii
iiiiiiiiitdarwins.apptShifttControltOptiontCommandtAlttMetatMt
_SimpleBindercBs,eZd„Zd„Zd„Zd„ZRS(cCsJ||_dt|dd|_||_||_g|_d|_dS(Nt<it>(ttypet_typestsequencetwidgett
widgetinsttbindedfuncstNonet	handlerid(tselfRRR((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyt__init__Fs				cCsX|ip:|i|id„}|ii|i|i|ƒ|_n|ii|ƒdS(NcSsz||_h}xdtt|ƒdddƒD]F}||}||jo)t||<||ƒ}|o|Sqrq,q,WdS(Niiÿÿÿÿ(tmc_typetrangetlentTrue(teventtlRt	wascalledtitfunctr((s-/usr/local/lib/python2.5/idlelib/MultiCall.pythandlerPs	


(RRRRtbindRR
tappend(RttripletRR((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR Ns


cCsJ|ii|ƒ|ip,|ii|i|i|iƒd|_ndS(N(RtremoveRtunbindRR
RR(RR"R((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR$^s
cCs1|io#|ii|i|i|iƒndS(N(RRR$RR
(R((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyt__del__ds
(t__name__t
__module__RR R$R%(((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyREs			cCs||S(((txty((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyt<lambda>nst-tcst‡fd†tƒS(cs
|ˆ@S(((tj(R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*ss(tfiltert_states(R((Rs-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*sscs(tt‡fd†tttƒƒƒƒS(csd|>ˆ@S(i((R(R((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*vs(RR.Rt
_modifiers(R(((R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*vscCs||ƒ||ƒS(((tatbtnummod((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*vscCs||BS(((R(R)((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*zst_ComplexBindercBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs"||||i|id„}|S(NcSsãtg|(||_||_h}d}x‚|D]z}xett|ƒdddƒD]G}	||	}
|
|jo*t||
<||	|ƒ}|oPq™qRqRW|oPq/q/Wg|(x|o|iƒƒq·W|o|SndS(Niiÿÿÿÿ(RRtmc_stateRRRtpop(RtlistsRR5tishandlerrunningtdoafterhandlerRRRRR((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR‰s.
		



	(R8R9(RR7RR5R((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyt__create_handlerˆs
cCs||_t|d|_||_||_hg}tD]
}|gq;~d<|_g|_g|_	g|_
x›tD]“}g}t|D]}||id|q~}|i||t
|ƒ}	dt||id}
|ii|
|ii|i|
|	ƒfƒq{WdS(NiR	R
(RRttypenameRRR/RRt
handleridsR8R9t_state_subsetst_ComplexBinder__create_handlert_state_codest_state_namesR!R (RRRRt_[1]tst_[2]RR7Rtseq((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR¤s			-			0csBˆiiˆdƒpíg}tD]
}|gq"~ˆiˆd<x¾tD]²}g}ˆddfD])}t|D]}|ˆi||qsqe~}ˆi|ˆit|ƒ}	dt|ˆi	ˆdf}
ˆi
i|
ˆii
ˆi|
|	ƒfƒqJWn‡‡‡fd†}ˆip|ƒnˆii|ƒdS(Nis	<%s%s-%s>cs ˆiˆdˆdiˆƒS(ii(RR!((RR"R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*Çs(Rthas_keyR/RR=R>RR?R@R;R<R!RR RR8R9(RR"RRARBRCtdetailRR7RRDtdoit((R"RRs-/usr/local/lib/python2.5/idlelib/MultiCall.pyR »s ,,

cs>‡‡‡fd†}ˆip|ƒnˆii|ƒdS(Ncs ˆiˆdˆdiˆƒS(ii(RR#((RR"R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*Îs(R8R9R!(RR"RRG((RR"Rs-/usr/local/lib/python2.5/idlelib/MultiCall.pyR$Ís
cCs7x0|iD]%\}}|ii|i||ƒq
WdS(N(R<RR$R(RRDtid((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR%Ôs
(R&R'R>RR R$R%(((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR4€s
				tKeyPresstKeyt
KeyReleasetButtonPresstButtont
ButtonReleasetActivatet	CirculatetColormapt	Configuret
DeactivatetDestroytEntertExposetFocusIntFocusOuttGravitytLeavetMaptMotiont
MouseWheeltPropertytReparenttUnmapt
Visibilitys^\w+$s^[1-5]$cCs‡|p"|ddjp|ddjod	Snti|dd!dƒ}d}x:|o2|dtjo!|dt|d>O}|d=qTW|o*|dtjot|d}|d=nd	St|tjo |p|od	Sqzd	}n‡|g}d
D]}|t|q~jo
t}nt}|p
d	}n:t	|ƒdjo"|i
|dƒo|d}nd	S|||fS(s-Get a string which should describe an event sequence. If it is
    successfully parsed as one, return a tuple containing the state (as an int),
    the event type (as an index of _types), and the detail - None if none, or a
    string if there is one. If the parsing is unsuccessful, return None.
    iR	iÿÿÿÿR
iR+RIRKN(RIRK(Rtstringtsplitt_modifier_namest_type_namest_binder_classesRt
_keysym_ret
_button_reRtmatch(R
twordst	modifiersRRFRARBttype_re((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyt_parse_sequenceís2*
,

'cCsg|do4dt|dt|ddd|ddSn%dt|dt|dddSdS(NiR	iiR+R
(R@R(R"((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyt_triplet_to_sequences4csCˆtjotˆSndˆf‡fd†ƒY}|tˆ<|S(s©Return a MultiCall class which inherits its methods from the
    given widget class (for example, Tkinter.Text). This is used
    instead of a templating mechanism.
    t	MultiCallcszeZ‡fd†Zddd‡fd†Zd‡fd†Z‡fd†Z‡fd†Zd‡fd†Zd„Z	RS(csgtˆi|f||ƒh|_g}tttƒƒD]}|t||ˆ|ƒq:~|_dS(N(tapplyRt_MultiCall__eventinfoRRRRft_MultiCall__binders(RtargstkwargsRAR(R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR*s	cs.t|ƒtjot|ƒdjoò|d djoá|ddjoÐ||ijo©|i|}|ddj	o8x5|dD]%}|i|di||dƒqWn||d<|ddj	o4x1|dD]!}|i|di||ƒqÔWqq|gg|i|<nˆi||||ƒS(Nis<<iþÿÿÿs>>ii(RtstrRRqRRrR$R (RR
RtaddteiR"(R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR 3s&"
'
'csÐt|ƒtjoªt|ƒdjo—|d djo†|ddjou||ijoe|i|\}}|dj	oAx)|D]!}|i|di||ƒqWd|i|d<q½nˆi|||ƒS(Nis<<iþÿÿÿs>>ii(RRuRRqRRrR$(RR
tfuncidRttripletsR"(R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR$Ds&"
cs¸||ijodgg|i|<n|i|\}}xw|D]o}t|ƒ}|djoˆi|||ƒqA|dj	o|i|di||ƒn|i|ƒqAWdS(Ni(RqRRmt	event_addRrR R!(Rtvirtualt	sequencesRRyRDR"(R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyRzOs

cs©||ijodSn|i|\}}xw|D]o}t|ƒ}|djoˆi|||ƒq2|dj	o|i|di||ƒn|i|ƒq2WdS(Ni(RqRmRtevent_deleteRrR$R#(RR{R|RRyRDR"(R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR}_s

csc|djp||ijoˆi||ƒSn/ttt|i|dƒƒˆi||ƒSdS(Ni(RRqt
event_infottupletmapRn(RR{(R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR~ms
	cSsbx[|iD]P}|i|\}}|o0x-|D]!}|i|di||ƒq1Wq
q
WdS(Ni(RqRrR$(RR{RRyR"((s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR%us
N(
R&R'RRR R$RzR}R~R%((R(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyRo's	(t_multicall_dict(RRo((Rs-/usr/local/lib/python2.5/idlelib/MultiCall.pytMultiCallCreators

V
t__main__csS‡fd†}tid|d|ƒtid|dˆƒ|dcd7<dS(Ncs	ˆGHdS(N((R(RD(s-/usr/local/lib/python2.5/idlelib/MultiCall.pyR†ss
<<handler%d>>ii(ttextR Rz(RDtnR((RDs-/usr/local/lib/python2.5/idlelib/MultiCall.pytbindseq…ss<Key>s
<Control-Key>s<Alt-Key-a>s<Control-Key-a>s<Alt-Control-Key-a>s<Key-b>s<Control-Button-1>s<Alt-Button-1>s
<FocusOut>s<Enter>s<Leave>iiii i@i€(R(R(R(R(R(R(R(RR(((sKeyPressRJ(s
KeyRelease(RLRM(RN(RO(RP(RQ(RR(RS(RT(RU(RV(RW(RX(RY(RZ(R[(R\(R](R^(R_(R`(Ra(Rt__doc__tsystosRbtretTkintertMC_KEYPRESSt
MC_KEYRELEASEtMC_BUTTONPRESStMC_BUTTONRELEASEtMC_ACTIVATEtMC_CIRCULATEtMC_COLORMAPtMC_CONFIGUREt
MC_DEACTIVATEt
MC_DESTROYtMC_ENTERt	MC_EXPOSEt
MC_FOCUSINtMC_FOCUSOUTt
MC_GRAVITYtMC_LEAVEtMC_MAPt	MC_MOTIONt
MC_MOUSEWHEELtMC_PROPERTYtMC_REPARENTtMC_UNMAPt
MC_VISIBILITYtMC_SHIFTt
MC_CONTROLtMC_ALTtMC_METAt	MC_OPTIONt
MC_COMMANDtplatformt
executabletcountR0t_modifier_maskstdictRARRtnumbertnameRdRR/RCRBtreducet_[3]RR@R€R=Rtsortt_[4]t_[5]R?R4RRft_[6]RetcompileRgRhRmRnRR‚R&tTktroottTextR„tpackR†tmainloop(((s-/usr/local/lib/python2.5/idlelib/MultiCall.pys<module>s®#
*
(o		g[		"
*	*		a














Man Man