/opt/alt/python27/lib64/python2.7/idlelib
NameSizeModeActions
Icons/-0755rm
idle_test/-0755rm
aboutDialog.py70140644editdlrm
aboutDialog.pyc70170644editdlrm
aboutDialog.pyo70170644editdlrm
AutoComplete.py89640644editdlrm
AutoComplete.pyc81810644editdlrm
AutoComplete.pyo81810644editdlrm
AutoCompleteWindow.py173180644editdlrm
AutoCompleteWindow.pyc127140644editdlrm
AutoCompleteWindow.pyo126550644editdlrm
AutoExpand.py33950644editdlrm
AutoExpand.pyc35800644editdlrm
AutoExpand.pyo35800644editdlrm
Bindings.py29760644editdlrm
Bindings.pyc47080644editdlrm
Bindings.pyo47080644editdlrm
CallTips.py77400644editdlrm
CallTips.pyc83540644editdlrm
CallTips.pyo83540644editdlrm
CallTipWindow.py60650644editdlrm
CallTipWindow.pyc62920644editdlrm
CallTipWindow.pyo62920644editdlrm
ChangeLog563930644editdlrm
ClassBrowser.py69990644editdlrm
ClassBrowser.pyc98900644editdlrm
ClassBrowser.pyo98900644editdlrm
CodeContext.py83420644editdlrm
CodeContext.pyc67880644editdlrm
CodeContext.pyo67440644editdlrm
ColorDelegator.py97620644editdlrm
ColorDelegator.pyc91190644editdlrm
ColorDelegator.pyo91190644editdlrm
config-extensions.def29650644editdlrm
config-highlight.def25150644editdlrm
config-keys.def77770644editdlrm
config-main.def25610644editdlrm
configDialog.py659580644editdlrm
configDialog.pyc544350644editdlrm
configDialog.pyo544350644editdlrm
configHandler.py324850644editdlrm
configHandler.pyc299850644editdlrm
configHandler.pyo299850644editdlrm
configHelpSourceEdit.py66860644editdlrm
configHelpSourceEdit.pyc67120644editdlrm
configHelpSourceEdit.pyo67120644editdlrm
configSectionNameDialog.py40400644editdlrm
configSectionNameDialog.pyc45100644editdlrm
configSectionNameDialog.pyo45100644editdlrm
CREDITS.txt18660644editdlrm
Debugger.py182360644editdlrm
Debugger.pyc181440644editdlrm
Debugger.pyo181440644editdlrm
Delegator.py6650644editdlrm
Delegator.pyc13460644editdlrm
Delegator.pyo13460644editdlrm
dynOptionMenuWidget.py19840644editdlrm
dynOptionMenuWidget.pyc28680644editdlrm
dynOptionMenuWidget.pyo28680644editdlrm
EditorWindow.py654980644editdlrm
EditorWindow.pyc585220644editdlrm
EditorWindow.pyo584200644editdlrm
extend.txt36420644editdlrm
FileList.py37180644editdlrm
FileList.pyc41680644editdlrm
FileList.pyo41350644editdlrm
FormatParagraph.py72870644editdlrm
FormatParagraph.pyc73110644editdlrm
FormatParagraph.pyo73110644editdlrm
GrepDialog.py51450644editdlrm
GrepDialog.pyc66070644editdlrm
GrepDialog.pyo66070644editdlrm
help.html424140644editdlrm
help.py110350644editdlrm
help.pyc125430644editdlrm
help.pyo125430644editdlrm
help.txt121440644editdlrm
HISTORY.txt103170644editdlrm
HyperParser.py104970644editdlrm
HyperParser.pyc68030644editdlrm
HyperParser.pyo68030644editdlrm
idle.py4530644editdlrm
idle.pyc4230644editdlrm
idle.pyo4230644editdlrm
idle.pyw5630644editdlrm
IdleHistory.py40520644editdlrm
IdleHistory.pyc41510644editdlrm
IdleHistory.pyo41510644editdlrm
idlever.py4150644editdlrm
idlever.pyc5910644editdlrm
idlever.pyo5910644editdlrm
IOBinding.py219110644editdlrm
IOBinding.pyc190680644editdlrm
IOBinding.pyo190680644editdlrm
keybindingDialog.py124680644editdlrm
keybindingDialog.pyc123680644editdlrm
keybindingDialog.pyo123680644editdlrm
macosxSupport.py84350644editdlrm
macosxSupport.pyc85850644editdlrm
macosxSupport.pyo84470644editdlrm
MultiCall.py177010644editdlrm
MultiCall.pyc167930644editdlrm
MultiCall.pyo167190644editdlrm
MultiStatusBar.py13480644editdlrm
MultiStatusBar.pyc23570644editdlrm
MultiStatusBar.pyo23570644editdlrm
NEWS.txt472470644editdlrm
ObjectBrowser.py43760644editdlrm
ObjectBrowser.pyc74310644editdlrm
ObjectBrowser.pyo74310644editdlrm
OutputWindow.py45760644editdlrm
OutputWindow.pyc54270644editdlrm
OutputWindow.pyo54270644editdlrm
ParenMatch.py67140644editdlrm
ParenMatch.pyc73500644editdlrm
ParenMatch.pyo73500644editdlrm
PathBrowser.py30090644editdlrm
PathBrowser.pyc46810644editdlrm
PathBrowser.pyo46810644editdlrm
Percolator.py32220644editdlrm
Percolator.pyc48030644editdlrm
Percolator.pyo46190644editdlrm
PyParse.py195100644editdlrm
PyParse.pyc102260644editdlrm
PyParse.pyo97880644editdlrm
PyShell.py588590755editdlrm
PyShell.pyc542690644editdlrm
PyShell.pyo541670644editdlrm
README.txt78900644editdlrm
RemoteDebugger.py116320644editdlrm
RemoteDebugger.pyc171310644editdlrm
RemoteDebugger.pyo169770644editdlrm
RemoteObjectBrowser.py9420644editdlrm
RemoteObjectBrowser.pyc22800644editdlrm
RemoteObjectBrowser.pyo22800644editdlrm
ReplaceDialog.py66390644editdlrm
ReplaceDialog.pyc80160644editdlrm
ReplaceDialog.pyo80160644editdlrm
rpc.py201500644editdlrm
rpc.pyc224950644editdlrm
rpc.pyo223890644editdlrm
RstripExtension.py10500644editdlrm
RstripExtension.pyc16650644editdlrm
RstripExtension.pyo16650644editdlrm
run.py129170644editdlrm
run.pyc137700644editdlrm
run.pyo137120644editdlrm
ScriptBinding.py84590644editdlrm
ScriptBinding.pyc83700644editdlrm
ScriptBinding.pyo83700644editdlrm
ScrolledList.py43730644editdlrm
ScrolledList.pyc67680644editdlrm
ScrolledList.pyo67680644editdlrm
SearchDialog.py26300644editdlrm
SearchDialog.pyc41390644editdlrm
SearchDialog.pyo41390644editdlrm
SearchDialogBase.py70940644editdlrm
SearchDialogBase.pyc86310644editdlrm
SearchDialogBase.pyo86310644editdlrm
SearchEngine.py74630644editdlrm
SearchEngine.pyc85750644editdlrm
SearchEngine.pyo85750644editdlrm
StackViewer.py44310644editdlrm
StackViewer.pyc66770644editdlrm
StackViewer.pyo66770644editdlrm
tabbedpages.py184390644editdlrm
tabbedpages.pyc190810644editdlrm
tabbedpages.pyo190810644editdlrm
textView.py35200644editdlrm
textView.pyc41160644editdlrm
textView.pyo41160644editdlrm
TODO.txt84780644editdlrm
ToolTip.py31730644editdlrm
ToolTip.pyc48900644editdlrm
ToolTip.pyo48900644editdlrm
TreeWidget.py150370644editdlrm
TreeWidget.pyc183830644editdlrm
TreeWidget.pyo183830644editdlrm
UndoDelegator.py107870644editdlrm
UndoDelegator.pyc142180644editdlrm
UndoDelegator.pyo142180644editdlrm
WidgetRedirector.py69060644editdlrm
WidgetRedirector.pyc79510644editdlrm
WidgetRedirector.pyo79510644editdlrm
WindowList.py24730644editdlrm
WindowList.pyc38310644editdlrm
WindowList.pyo38310644editdlrm
ZoomHeight.py13000644editdlrm
ZoomHeight.pyc17110644editdlrm
ZoomHeight.pyo17110644editdlrm
__init__.py2880644editdlrm
__init__.pyc4440644editdlrm
__init__.pyo4440644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyo (16719B)
ó Þ[ bc@sdZddlZddlZddlZddlZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdJZdKZdLZdMZdNZ dOZ!ej"dkrdPdQdRdSfZ#eee e!fZ$n$dTdUdVdWfZ#eeeefZ$e%ge&e'e#ƒƒD]#Z(e#e(D]Z)e)e(f^qbqTƒZ*d"dXd#„ƒYZ+e&de'e#ƒ>ƒZ,ge,D]%Z-d$j.d%„e/e#ƒDƒƒ^q°Z0d&„Z1e1e,ƒZ2gZ3x]e,D]UZ-dZ4x9e&e'e#ƒƒD]%Z5de5>e-@re4e$e5OZ4qqWe3j6e4ƒqýWd'dYd(„ƒYZ7dZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpfZ8e7fde+fe'e8ƒdZ9e%ge&e'e8ƒƒD]#Z(e8e(D]Z)e)e(f^qúqìƒZ:ej;dBƒZ<ej;dCƒZ=dD„Z>dE„Z?iZ@dF„ZAdG„ZBeCdHkr‰ddIlDmEZEeEeBƒndS(qs˜ 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 i i i iiiiiiiiitdarwintShifttControltOptiontCommandtAlttMetatMt _SimpleBindercBs,eZd„Zd„Zd„Zd„ZRS(cCsJ||_dt|dd|_||_||_g|_d|_dS(Nt(ttypet_typestsequencetwidgett widgetinstt bindedfuncstNonet handlerid(tselfR RR((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyt__init__Es     cCsV|jsB|j|jd„}|jj|j|j|ƒ|_n|jj|ƒdS(NcSss||_i}x]tt|ƒdddƒD]?}||}||kr,t||<||ƒ}|rk|Sq,q,WdS(Niiÿÿÿÿ(tmc_typetrangetlentTrue(teventtlRt wascalledtitfunctr((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pythandlerOs #    (RRR RtbindRR tappend(RttripletRR((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR Ms   cCsH|jj|ƒ|jsD|jj|j|j|jƒd|_ndS(N(RtremoveRtunbindRR RR(RR"R((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR$]s cCs/|jr+|jj|j|j|jƒndS(N(RRR$RR (R((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyt__del__cs (t__name__t __module__RR R$R%(((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyRDs   tccs1|]'\}}d|>t@r|ddVqdS(iit-N(ts(t.0Rtm((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pys ms csid„}g}xS|D]K‰tt‡fd†|Dƒƒƒ}|jd|dtƒ|j|ƒqW|S(s•For each item of states return a list containing all combinations of that item with individual bits reset, sorted by the number of set bits. cSs6d}x)|r1t|dƒ\}}||7}q W|S(snumber of bits set in n base 2ii(tdivmod(tntnbtrem((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pytnbitsvs  c3s|]}ˆ|@VqdS(N((R+tx(tstate(s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pys stkeytreverse(tlisttsettsortRR!(tstatesR1t statelistt substates((R3s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pytexpand_substatesrs  "t_ComplexBindercBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs"||||j|jd„}|S(Nc SsÛtg|(||_||_i}d}x||D]t}xatt|ƒdddƒD]C} || } | |krRt|| <|| |ƒ}|r•Pq•qRqRW|r/Pq/q/Wg|(x|D] } | ƒqµWg|(|r×|SdS(Niiÿÿÿÿ(RRtmc_stateRRR( RtlistsRR>tishandlerrunningtdoafterhandlerRRRRRtf((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR˜s*    #      (R@RA(RR?RR>R((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyt__create_handler—s c Cs||_t|d|_||_||_igtD] }g^q6d6|_g|_g|_ g|_ x“tD]‹}gt |D]}|jd|^q‚}|j ||t |ƒ}dt||jd}|jj||jj|j||ƒfƒqqWdS(NiR R (R R ttypenameRRt_statesRRt handleridsR@RAt_state_subsetst_ComplexBinder__create_handlert _state_codest _state_namesR!R ( RR RRR*RR?Rtseq((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR´s   #    (c s+ˆdˆjkrïgtD] }g^qˆjˆdWn‡‡‡fd†} ˆjs| ƒnˆjj | ƒdS(Nis <%s%s-%s>cs ˆjˆdˆdjˆƒS(Nii(RR!((RRR"(s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyt×R((RRERRGRHR RIRJRDRFR!RR RR@RA( RR"RR*tdetailRR?RRKtdoit((RRR"s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR Ës$ (   cs<‡‡‡fd†}ˆjs(|ƒnˆjj|ƒdS(Ncs ˆjˆdˆdjˆƒS(Nii(RR#((RRR"(s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyRLÞR((R@RAR!(RR"RRN((RRR"s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR$Ýs  cCs7x0|jD]%\}}|jj|j||ƒq WdS(N(RFRR$R(RRKtid((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR%äs(R&R'RHRR R$R%(((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR=s     tKeyPresstKeyt KeyReleaset ButtonPresstButtont ButtonReleasetActivatet CirculatetColormapt Configuret DeactivatetDestroytEntertExposetFocusIntFocusOuttGravitytLeavetMaptMotiont MouseWheeltPropertytReparenttUnmapt Visibilitys^\w+$s^[1-5]$cCsc| s'|ddks'|ddkr+d Stj|dd!dƒ}d}x7|rƒ|dtkrƒ|dt|d>O}|d=qMW|r²|dtkr²t|d}|d=nd St|tkrß|sÒ|rÖd Sd }nw|gd D]}t|^qékr t}nt}|s d }n6t |ƒdkrR|j |dƒrR|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)RPRRN(RPRR( Rtstringtsplitt_modifier_namest _type_namest_binder_classesRt _keysym_ret _button_reRtmatch(R twordst modifiersR RMR*ttype_re((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyt_parse_sequenceýs0'    #  % cCsb|dr:dt|dt|ddd|ddSdt|dt|dddSdS(NiR iiR)R (RJR (R"((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyt_triplet_to_sequence's 0cs>ˆtkrtˆSdˆ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(csXˆj|||Ži|_gtttƒƒD]}t||ˆ|ƒ^q/|_dS(N(Rt_MultiCall__eventinfoRRR Rmt_MultiCall__binders(RtargstkwargsR(R(s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR:s cs#t|ƒtkr t|ƒdkr |d dkr |ddkr ||jkr÷|j|}|ddk r§x4|dD]%}|j|dj||dƒq{Wn||d<|ddk r x0|dD]!}|j|dj||ƒqÌWq q |gg|j|>ii(R tstrRRwRRxR$R (RR RtaddteiR"(R(s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR Cs$  & %csÈt|ƒtkrµt|ƒdkrµ|d dkrµ|ddkrµ||jkrµ|j|\}}|dk rµx)|D]!}|j|dj||ƒqyWd|j|d>ii(R R{RRwRRxR$(RR tfuncidRttripletsR"(R(s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyR$Ts$   cs²||jkr%dgg|j|>ii(R R€(RKR.R(ttext(RKs6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pytbindseq˜sss s sssss ss ss( tTkintertTkttitleR6R†tinttreRjtgeometryRˆtTexttpacktmainloop(tparenttroottwidththeightR2tyRŠ((R‰s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyt _multi_call‘s(  3             t__main__(truniiii i@i€(R(R(R(R(R(R(R(RR(((RPRQ(RR(RSRT(RU(RV(RW(RX(RY(RZ(R[(R\(R](R^(R_(R`(Ra(Rb(Rc(Rd(Re(Rf(Rg(Rh(Ft__doc__tsysRiRR‹t MC_KEYPRESSt MC_KEYRELEASEtMC_BUTTONPRESStMC_BUTTONRELEASEt MC_ACTIVATEt MC_CIRCULATEt MC_COLORMAPt MC_CONFIGUREt MC_DEACTIVATEt MC_DESTROYtMC_ENTERt MC_EXPOSEt MC_FOCUSINt MC_FOCUSOUTt MC_GRAVITYtMC_LEAVEtMC_MAPt MC_MOTIONt MC_MOUSEWHEELt MC_PROPERTYt MC_REPARENTtMC_UNMAPt MC_VISIBILITYtMC_SHIFTt MC_CONTROLtMC_ALTtMC_METAt MC_OPTIONt MC_COMMANDtplatformt _modifierst_modifier_maskstdictRRtnumbertnameRkRRER*tjoint enumerateRJR<RGRIRRR!R=R RmRltcompileRnRoRtRuR‡RˆR™R&tidlelib.idle_test.htestR›(((s6/opt/alt/python27/lib64/python2.7/idlelib/MultiCall.pyts–    & (/   \   "& *  b