/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/configHandler.pyo (29985B)
 [ bc@s~dZddlmZddlZddlZddlmZddlmZddlm Z m Z de fdYZ d e fd YZ d e fd YZd e fdYZdefdYZdefdYZdfdYZeZedkrzddlmZddf\aadZdZeejeejedtdtddndS(sProvides access to stored IDLE configuration information. Refer to the comments at the beginning of config-main.def for a description of the available configuration files and the design implemented to update user configuration information. In particular, user configuration choices which duplicate the defaults will be removed from the user's configuration files, and if a file becomes empty, it will be deleted. The contents of the user files may be altered using the Options/Configure IDLE menu to access the configuration GUI (configDialog.py), or manually. Throughout this module there is an emphasis on returning useable defaults when a problem occurs in returning a requested configuration value back to idle. This is to allow IDLE to continue to function in spite of errors in the retrieval of config information. When a default is returned instead of a requested config value, a message is printed to stderr to aid in configuration problem notification and resolution. i(tprint_functionN(t ConfigParser(t TkVersion(tFontt nametofonttInvalidConfigTypecBseZRS((t__name__t __module__(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRstInvalidConfigSetcBseZRS((RR(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRst InvalidFgBgcBseZRS((RR(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR st InvalidThemecBseZRS((RR(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR stIdleConfParsercBs>eZdZddZddedZdZdZRS(sI A ConfigParser specialised for idle configuration file handling cCs ||_tj|d|dS(sK cfgFile - string, fully specified configuration file name tdefaultsN(tfileRt__init__(tselftcfgFilet cfgDefaults((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR&s cCsh|j||s|S|dkr2|j||S|dkrN|j||S|j||d|SdS(s Get an option value for given section/option or return default. If type is specified, return as type. tbooltinttrawN(t has_optiont getbooleantgetinttget(RtsectiontoptionttypetdefaultR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGet-s  cCs$|j|r|j|SgSdS(s4Return a list of options for given section, else [].N(t has_sectiontoptions(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt GetOptionList>s cCs|j|jdS(s&Load the configuration file from disk.N(treadR (R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytLoadEsN( RRt__doc__tNoneRtFalseRR R"(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR "s   tIdleUserConfParsercBsMeZdZdZdZdZdZdZdZdZ RS(sG IdleConfigParser specialised for user configuration handling. cCs#|j|s|j|ndS(s!If section doesn't exist, add it.N(Rt add_section(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt AddSectionNscCs:x3|jD]%}|j|s |j|q q WdS(s)Remove any sections that have no options.N(tsectionsR tremove_section(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytRemoveEmptySectionsSscCs|j|j S(s9Return True if no sections after removing empty sections.(R+R)(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytIsEmptyYs cCs#|j|r|j||StS(sReturn True if option is removed from section, else False. False if either section does not exist or did not have option. (Rt remove_optionR%(RRR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt RemoveOption^scCs|j||rH|j|||kr.tS|j|||tSn6|j|sg|j|n|j|||tSdS(sReturn True if option is added or changed to value, else False. Add section if required. False means option already had value. N(RRR%tsettTrueRR'(RRRtvalue((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt SetOptiongscCs,tjj|jr(tj|jndS(s9Remove user config file self.file from disk if it exists.N(tostpathtexistsR tremove(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt RemoveFilexscCs|jsu|j}yt|d}Wn-tk rWtj|t|d}nX||j|WdQXn |jdS(sUpdate user configuration file. Remove empty sections. If resulting config isn't empty, write the file to disk. If config is empty, remove the file from disk if it exists. twN(R,R topentIOErrorR3tunlinktwriteR7(RtfnameR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytSave}s    ( RRR#R(R+R,R.R2R7R>(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR&Is     tIdleConfcBseZdZdZdZdZddeedZ dZ dZ ddZ dZ d Zd Zeeed Zd Zd ZdZdZdZdZdZdZdZddZdZdZdZdZdZRS(slHold config parsers for all idle config files in singleton instance. Default config files, self.defaultCfg -- for config_type in self.config_types: (idle install dir)/config-{config-type}.def User config files, self.userCfg -- for config_type in self.config_types: (user home dir)/.idlerc/config-{config-type}.cfg cCs<d|_i|_i|_i|_|j|jdS(Ntmaint extensionst highlighttkeys(R@RARBRC(t config_typest defaultCfgtuserCfgtcfgtCreateConfigHandlerst LoadCfgFiles(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRs      cCstdkr!tjjt}ntjjtjd}|j}i}i}xS|jD]H}tjj |d|d||>' s<>RiN(R$RtGetExtensionKeys(Rt virtualEventtextNametvEventRtevent((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetExtnNameForEvents c Cs|d}|j}i}|jdj|r~|jdj|}x3|D](}d|d}||}|||>(tGetCurrentKeySetRERR ( Rt extensionNametkeysNamet activeKeystextKeyst eventNamest eventNameRtbinding((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRs    cCs|d}i}|jdj|r|jdj|}xJ|D]?}|jd||ddj}d|d}|||>(RERR Rdtsplit(RRRRRRRR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt__GetRawExtensionKeyss  cCs|d}|j|}|jdj|r|jdj|}xJ|D]?}|jd||ddj}d|d}|||>(RRERR RdR(RRt bindsNametextBindsRRRR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetExtensionBindingss  cCs2|dd!}|jd||ddj}|S(sReturn the keybinding list for keySetName eventStr. keySetName - name of key binding set (config-keys section). eventStr - virtual event, including brackets, as in '<>'. iiRCRRz(RdR(Rt keySetNameteventStrRR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt GetKeyBinding s !cCs|j|j}tjdkrx[|jD]J\}}g|D]}|jdd^qD}||kr1|||>' s<>(R(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt IsCoreBinding;scCsi1ddgd6ddgd6ddgd 6d d gd 6d gd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd 6d!gd"6d#gd$6d%gd&6d'gd(6d)gd*6d+gd,6d-gd.6d/gd06d1gd26d3gd46d5gd66d7gd86d9gd:6d;gd<6d=gd>6d?d@gdA6dBgdC6dDgdE6dFgdG6dHgdI6dJgdK6dLgdM6dNdOgdP6dQgdR6dSgdT6dUgdV6dWgdX6dYgdZ6d[gd\6d]gd^6d_gd`6dagdb6dcgdd6degdf6}|rxx|D]m}|j||}|r:|||s s<>s s s<>s s s <>s ss<>s s<>s s<>ss<>s<>s s<>ss<>s s<>ss<>ss<>s<>ss<>s s<>ss<>ss<>s s<>s s<>s s<>s s<>s s<>ss<>s s<>ss<>s s<>ss<>ss<>s s<>s ss<>ss<>s s<>s s<>s s <>ss <>ss<>s ss<>s s<>ss<>ss<>s s<>s s<>s s<>s s<>s s<>s s<>ss<>ss<>s Warning: configHandler.py - IdleConf.GetCoreKeys - problem retrieving key binding for event %r from key set %r. returning default value: %rR (RRXRNRYR:(RRt keyBindingsRRRc((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRFs|                                                      c Csg}|dkr"|jd}n(|dkr>|jd}n td|jd}x|D]}|jd|dd}|jddkrd}d}n/|jd}|d j}|d j}|r`|r`|j|||fq`q`W|j d d |S( sReturn list of extra help sources from a given configSet. Valid configSets are 'user' or 'default'. Return a list of tuples of the form (menu_item , path_to_help_file , option), or return the empty list. 'option' is the sequence number of the help resource. 'option' values determine the position of the menu items on the Help menu, therefore the returned list must be sorted by 'option'. ReR@RsInvalid configSet specifiedt HelpFilest;iRziitkeycSst|dS(Ni(R(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytRz( RFRERR RtfindRtstripRR( RRft helpSourcesRgRRR1tmenuItemthelpPath((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetExtraHelpSourceLists&       cCs |jd|jd}|S(sReturn a list of the details of all additional help sources. Tuples in the list are those of GetExtraHelpSourceList. RRe(R(RtallHelpSources((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetAllExtraHelpSourcesLists c Cs|j||ddd}|j||ddddd}|j||ddd dd }|d krtd kr~d }qtdd dtd|}tj|}|d}|d}|d krd}n|ddk}n|||rdndfS(sRetrieve a font from configuration (font, font-size, font-bold) Intercept the special value 'TkFixedFont' and substitute the actual font, factoring in some tweaks if needed for appearance sakes. The 'root' parameter can normally be any valid Tkinter widget. Return a tuple (family, size, weight) suitable for passing to tkinter.Font tfontRtcouriers font-sizeRRt10s font-boldiRt TkFixedFontg!@tCourierR{R5troottfamilytsizei tweighttboldtnormal(RdRRR0tactual( RRRaRRRRtft actualFont((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetFonts          cCs:x3|jD](}|j|j|j|jq WdS(sLoad all configuration files.N(RER"RF(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRIscCs)x"|jD]}|j|jq WdS(s2Write all loaded user configuration files to disk.N(RFR>(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytSaveUserCfgFilessN( RRR#RRHROR$R0R%RdR2RhRuRnR}RRRRRRRRRRRRRRRRIR(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR?s8   -    @  #       M  RJ(tcrc32icCs?t|}td7at|jddtat|dS(Nitencodingsutf-8(tstrtlineRtencodetcrcRX(tobjttxt((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytsprints  cCstd|dxt|jD]}||j}t|t|xh|D]`}||j|}t|t|x0|D](}t|d||j||qWqTWq#WdS(Ns s = (RXtsortedRCR)RRR(RGRR)RRR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytdumpCfgs      s lines = s, crc = tsepRz(R#t __future__RR3RNRtTkinterRttkFontRRt ExceptionRRR R R R&R?tidleConfRtzlibRRRRRRERFRX(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyts0  'GW