Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/lib64/python2.6/idlelib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.6/idlelib/keybindingDialog.pyc
Ñò
§ÚêLc	@s‹dZddkTddkZddkZdefd„ƒYZedjo<eƒZd„Z	e
edd	d
e	ƒiƒeiƒndS(s6
Dialog for building Tkinter accelerator key bindings
iÿÿÿÿ(t*Nt
GetKeysDialogcBsƒeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
d
„Z
d
d„Zd„ZRS(c	Cs¤ti||ƒ|iddƒ|idtdtƒ|i|ƒ|i|ƒ|iƒ|id|i	ƒ||_
||_||_d|_
t|ƒ|_|iidƒ|iƒg|_x:|iD]/}t|ƒ}|idƒ|ii|ƒqÍWt|_|iƒ|iƒ|iƒ|iƒ|id|iƒ|iƒd|iƒd|iƒ|i ƒd|i!ƒdfƒ|i"ƒ|i#ƒd	S(
sõ
        action - string, the name of the virtual event these keys will be
                 mapped to
        currentKeys - list, a list of all key sequence lists currently mapped
                 to virtual events, for overlap checking
        tborderwidthitheighttwidthtWM_DELETE_WINDOWts+%d+%diN($tToplevelt__init__t	configuret	resizabletFALSEttitlet	transienttgrab_settprotocoltCanceltparenttactiontcurrentKeySequencestresultt	StringVart	keyStringtsettSetModifiersForPlatformt
modifier_varst	modifierstappendtFalsetadvancedt
CreateWidgetstLoadFinalKeyListtwithdrawtupdate_idletaskstgeometrytwinfo_rootxtwinfo_widthtwinfo_reqwidthtwinfo_rootytwinfo_heighttwinfo_reqheightt	deiconifytwait_window(tselfRRRRtmodifiertvariable((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyR	s@


				
	

	



	
c
CsZt|dddtƒ}|idtdtdtƒt|ƒ}|idtdtƒt|ddd	d
d|i	ƒ|_
|i
idd
dd
ddddƒt|ddd	d
d|iƒ|_
|i
idd
ddddddƒt|ƒ|_t|ƒ|_t|ƒ|_t|ƒ|_|iidd
dd
dtddddƒ|iidd
dd
dtddddƒ|iiƒ|iidddd
dtddƒ|iidddd
dtddƒ|iiƒt|d|iddƒ|_|iidddd
dtddddƒt|idd|idƒ}|idtƒt|idtd|idtddƒ}|idddddtƒh|_d
}x¡t|i|i ƒD]Š\}}|i!i"||ƒ}t#|id|i$d|d|d|d d!ƒ}	|	idd
d|dddtƒ|	|i|<|d7}qÂWt|idtdd"d#d$d%d&d'ƒ}
|
idddd
d(d)dddtƒt%|id	d*d+d,d-t&ƒ|_'|i'i(d.|i)ƒ|i'idd
dd)d/d)dt*ƒt+|id0t,d|i'i-ƒ}|i'i.d1|i/ƒ|idd
ddd/d)dt*ƒt|idd2d|i0ƒ|_1|i1idddd
d(d)ƒt|idtdd3|id4d5ƒ}|idtƒt2|id|iƒ|_3|i3idtƒt|idtdd6d7d8d9d:d;d<ƒ}
|
idd
dd
dtƒdS(=NRitrelieftsidetexpandtfillttexttOKRitcommandtrowitcolumntpadxitpadyRitstickysAdvanced Key Binding Entry >>tsticksNew keys for  's' :tanchortjustifyttextvariabletipadxtipadyR-tonvaluetoffvalueRs!Select the desired modifier keys
s"above, and the final key from the
slist on the right.

s"Use upper case Symbols when using
s&the Shift modifier.  (Letters will be
sconverted automatically.)t
columnspaniiRi
t
selectmodes<ButtonRelease-1>trowspantorienttyscrollcommands
Clear KeyssEnter new binding(s) for  's' :
s2(These bindings will not be checked for validity!)s4Key bindings are specified using Tkinter keysyms as
sŸin these samples: <Control-f>, <Shift-F2>, <F12>,
<Control-space>, <Meta-less>, <Control-Alt-Shift-X>.
Upper case is used when the Shift modifier is present!

s8'Emacs style' multi-keystroke bindings are specified as
s5follows: <Control-x><Control-y>, where the first key
s!is the 'do-nothing' keybinding.

s4Multiple separate bindings for one action should be
s,separated by a space, eg., <Alt-v> <Meta-v>.(4tFrametSUNKENtpacktTOPtTRUEtBOTHtBOTTOMtXtButtonR3tbuttonOKtgridRtbuttonCanceltframeKeySeqBasictframeKeySeqAdvancedtframeControlsBasictframeHelpAdvancedtNSEWtlifttToggleLeveltbuttonLeveltEWtLabelRtWtLEFTRtGROOVEtmodifier_checkbuttonstzipRRtmodifier_labeltgettCheckbuttontBuildKeyStringtListboxtSINGLEt
listKeysFinaltbindtFinalKeySelectedtNSt	ScrollbartVERTICALtyviewtconfigRtClearKeySeqtbuttonCleartEntrytentryKeysAdvanced(R+t	frameMaintframeButtonstlabelTitleBasictlabelKeysBasicR6R,R-tlabeltcheckt
labelFnAdvicetscrollKeysFinaltlabelTitleAdvancedtlabelHelpAdvanced((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyR0s„%%++
%%
+		"

(%"

cCs\ddkl}|iƒoddddg|_ndddg|_hdd6|_d	S(
sUDetermine list of names of key modifiers for this platform.

        The names are used to build Tk bindings -- it doesn't matter if the
        keyboard has these keys, it matters if Tk understands them. The
        order is also important: key binding equality depends on it, so
        config-keys.def must use the same ordering.
        iÿÿÿÿ(t
macosxSupporttShifttControltOptiontCommandtAlttCtrlN(tidlelibR~trunningAsOSXAppRRb(R+R~((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyRs

cCs²|iidƒd djoQ|iƒ|iiddƒ|iiƒ|iiƒ|iiƒt	|_
nA|iƒ|iiddƒ|iiƒ|iiƒt
|_
dS(NR2itAdvanceds<< Basic Key Binding EntrysAdvanced Key Binding Entry >>(RZtcgetRpRoRTRXRVRst	focus_settTrueRRSRUR(R+((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyRYŽs







cCs|iƒdS(N(Re(R+tevent((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyRjscCst|iƒ}}|iitƒ}|o#|i||ƒ}|i|ƒn|iidti	|dƒdƒdS(Nt<t-t>(
tGetModifiersRhRctANCHORtTranslateKeyRRRtstringtjoin(R+tkeyListRtfinalKey((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyRe scCsTg}|iD]}||iƒq~}g}|D]}|o||q5q5~S(N(RRc(R+t_[1]R-tmodListt_[2]tmod((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyR¨s*cCs[|iidtƒ|iitdƒx|iD]}|idƒq0W|iidƒdS(Nis0.0R(Rhtselect_cleartENDRntMOVETORRR(R+R-((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyRp¬s
cCsd|_ttitiƒ|_tdƒ|_d|_d|_d|_	|i|i|i|i|i|i	}|i
it|ŒdS(NtF1tF2tF4tF5tF6tF7tF8tF9tF10tF11tF12s~!@#%^&*()_-+={}[]|;:,.<>/?tTabtSpacetReturnt	BackSpacetDeletetInserttHometEndsPage Ups	Page Downs
Left ArrowsRight ArrowsUp Arrows
Down Arrow(RRžRžRŸR R¡R¢R£R¤R¥R¦R§(R¨R©Rª(R«R¬R­(R®R¯sPage Ups	Page Downs
Left ArrowsRight ArrowsUp Arrows
Down Arrow(
tfunctionKeysttupleR’tascii_lowercasetdigitstalphanumKeystpunctuationKeystwhitespaceKeysteditKeystmoveKeysRhtinsertR›(R+tkeys((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyR³s				,cCsWh#dd6dd6dd6dd6d	d
6dd6d
d6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6d#d$6d%d&6d'd(6d)d*6d+d,6d-d.6d/d06d1d26d3d46d5d66d7d86d9d:6d;d<6d=d>6d?d@6dAdB6dCdD6dEdE6}||iƒjo||}ndF|jo |tijo|iƒ}ndG|}|S(Hs2Translate from keycap symbol to the Tkinter keysymtspaceR©t
asciitildet~texclamt!tatt@t
numbersignt#tpercentt%tasciicircumt^t	ampersandt&tasteriskRt	parenleftt(t
parenrightt)t
underscoret_tminusRtplust+tequalt=t	braceleftt{t
bracerightt}tbracketleftt[tbracketrightt]tbart|t	semicolont;tcolont:tcommat,tperiodt.tlessRŒtgreaterRŽtslasht/tquestiont?tPriorsPage UptNexts	Page DowntLefts
Left ArrowtRightsRight ArrowtUpsUp ArrowtDowns
Down ArrowR¨RsKey-(RºR’R²tupper(R+tkeyRt
translateDict((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyR‘Âs 
#
cCs;|ip
|iƒo |iiƒ|_|iƒndS(N(RtKeysOKRRcRtdestroy(R+R‹((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyR3ÕscCsd|_|iƒdS(NR(RRø(R+R‹((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyRÚs	cCsv|iiƒ}|iƒ|iitƒ}|iƒ}|iƒ}t}d}|p ti	d|d|ddƒný|i
dƒp ti	d|d|ddƒnÍ|o7||i|ijo ti	d|d|ddƒnŽ|d	gjoA||i|idjo&d}ti	d|d|d|ƒn=||i
jo&d
}ti	d|d|d|ƒnt}|S(s©Validity check on user's 'basic' keybinding selection.

        Doesn't check the string produced by the advanced dialog because
        'modifiers' isn't set.

        sKey Sequence ErrorRRtmessagesNo keys specified.RŽsMissing the final KeysNo modifier key(s) specified.RR¨R©sBThe shift modifier by itself may not be used with this key symbol.s'This key combination is already in use.(sTabsSpace(RRctstripRhRRtsplitRttkMessageBoxt	showerrortendswithR°R¸RRŠ(R+RºR•RtkeySequencetkeysOKRtmsg((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyR÷Þs6
  N(t__name__t
__module__RRRRYRjReRRpRR‘tNoneR3RR÷(((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyRs	'	O								t__main__cCs'd}ttddgƒ}|iGHdS(NRsGet Keyss
find-again(RtrootR(tkeySeqtdlg((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pytrunsR2tDialogR4(
t__doc__tTkinterRüR’RRRtTkRR	RORItmainloop(((s0/usr/lib64/python2.6/idlelib/keybindingDialog.pyt<module>s
ü
		

haha - 2025