Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
idlelib
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/idlelib/configHandler.pyo
mò ‚=5Dc�����������@���s*��d��Z��d�k�Z�d�k�Z�d�k�Z�d�k�l�Z�l�Z�l�Z�d�e�f�d�„��ƒ��YZ�d�e�f�d�„��ƒ��YZ �d�e�f�d�„��ƒ��YZ �d �e�f�d �„��ƒ��YZ�d�e�f�d�„��ƒ��YZ�d �e�f�d�„��ƒ��YZ �d�f��d�„��ƒ��YZ�e�ƒ��Z�e�d�j�o?�d�„��Z�e�e�i�ƒ�e�e�i�ƒ�e�i�d�i�d�d�ƒ�GHn�d�S(���sÖ��Provides 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. N(���s���ConfigParsers ���NoOptionErrors���NoSectionErrort���InvalidConfigTypec�����������B���s���t��Z�RS(���N(���t���__name__t ���__module__(����(����(����t+���/usr/lib/python2.4/idlelib/configHandler.pyR�������s����t���InvalidConfigSetc�����������B���s���t��Z�RS(���N(���R���R���(����(����(����R���R������s����t���InvalidFgBgc�����������B���s���t��Z�RS(���N(���R���R���(����(����(����R���R������s����t���InvalidThemec�����������B���s���t��Z�RS(���N(���R���R���(����(����(����R���R������s����t���IdleConfParserc�����������B���s;���t��Z�d��Z�e�d�„�Z�e�e�d�„�Z�d�„��Z�d�„��Z�RS(���sI��� A ConfigParser specialised for idle configuration file handling c���������C���s ���|�|��_�t�i�|��d�|�ƒd�S(���sK��� cfgFile - string, fully specified configuration file name t���defaultsN(���t���cfgFilet���selft���filet���ConfigParsert���__init__t���cfgDefaults(���R ���R ���R���(����(����R���R ���"���s����� c���������C���si���|�d�j�o �|��i�}�n$�|�d�j�o �|��i�}�n �|��i�}�|��i�|�|�ƒ�o�|�|�|�ƒ�Sn�|�Sd�S(���s��� Get an option value for given section/option or return default. If type is specified, return as type. t���boolt���intN( ���t���typeR ���t ���getbooleant���getValt���getintt���gett ���has_optiont���sectiont���optiont���default(���R ���R���R���R���R���R���(����(����R���t���Get)���s����� c���������C���s)���|��i�|�ƒ�o�|��i�|�ƒ�Sn�g��Sd�S(���s6��� Get an option list for given section N(���R ���t���has_sectionR���t���options(���R ���R���(����(����R���t ���GetOptionList:���s�����c���������C���s���|��i�|��i�ƒ�d�S(���s7��� Load the configuration file from disk N(���R ���t���readR���(���R ���(����(����R���t���LoadC���s�����(���R���R���t���__doc__t���NoneR ���R���R���R���(����(����(����R���R������s ���� t���IdleUserConfParserc�����������B���sM���t��Z�d��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z �RS(���sG��� IdleConfigParser specialised for user configuration handling. c���������C���s%���|��i�|�ƒ�p�|��i�|�ƒ�n�d�S(���s2��� if section doesn't exist, add it N(���R ���R���R���t���add_section(���R ���R���(����(����R���t ���AddSectionN���s�����c���������C���s<���x5�|��i�ƒ��D]'�}�|��i�|�ƒ�p�|��i�|�ƒ�q �q �Wd�S(���s:��� remove any sections that have no options N(���R ���t���sectionsR���R���t���remove_section(���R ���R���(����(����R���t���RemoveEmptySectionsU���s ����� �c���������C���s'���|��i�ƒ��|��i�ƒ��o�d�Sn�d�Sd�S(���sp��� Remove empty sections and then return 1 if parser has no sections left, else return 0. i����i���N(���R ���R'���R%���(���R ���(����(����R���t���IsEmpty]���s ����� c���������C���s(���|��i�|�ƒ�o�|��i�|�|�ƒ�Sn�d�S(���sl��� If section/option exists, remove it. Returns 1 if option was removed, 0 otherwise. N(���R ���R���R���t ���remove_optionR���(���R ���R���R���(����(����R���t���RemoveOptionh���s�����c���������C���s‹���|��i�|�|�ƒ�o<�|��i�|�|�ƒ�|�j�o�d�Sq‡�|��i�|�|�|�ƒ�d�Sn9�|��i�|�ƒ�p�|��i�|�ƒ�n�|��i�|�|�|�ƒ�d�Sd�S(���s‚��� Sets option to value, adding section if required. Returns 1 if option was added or changed, otherwise 0. i����i���N( ���R ���R���R���R���R���t���valuet���setR���R#���(���R ���R���R���R+���(����(����R���t ���SetOptionp���s�����c���������C���s.���t��i�i�|��i�ƒ�o�t��i�|��i�ƒ�n�d�S(���sF��� Removes the user config file from disk if it exists. N(���t���ost���patht���existsR ���R���t���remove(���R ���(����(����R���t ���RemoveFile���s�����c���������C���s>���|��i�ƒ��p#�t�|��i�d�ƒ�}�|��i�|�ƒ�n�|��i�ƒ��d�S(���sÆ���Update 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. t���wN(���R ���R(���t���openR���R ���t���writeR2���(���R ���R ���(����(����R���t���Saveˆ���s ����� ( ���R���R���R ���R$���R'���R(���R*���R-���R2���R6���(����(����(����R���R"���I���s���� t���IdleConfc�����������B���s��t��Z�d��Z�d�„��Z�d�„��Z�d�„��Z�e�e�e�d�„�Z�d�„��Z �d�„��Z �e�d�„�Z�d�„��Z�d �„��Z �d �„��Z�e�e�e�d�„�Z�d�„��Z�d �„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�e�d�„�Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�RS(���së�� holds config parsers for all idle config files: default config files (idle install dir)/config-main.def (idle install dir)/config-extensions.def (idle install dir)/config-highlight.def (idle install dir)/config-keys.def user config files (user home dir)/.idlerc/config-main.cfg (user home dir)/.idlerc/config-extensions.cfg (user home dir)/.idlerc/config-highlight.cfg (user home dir)/.idlerc/config-keys.cfg c���������C���s3���h��|��_�h��|��_�h��|��_�|��i�ƒ��|��i�ƒ��d��S(���N(���R ���t ���defaultCfgt���userCfgt���cfgt���CreateConfigHandlerst���LoadCfgFiles(���R ���(����(����R���R ���£���s ���� c���������C���sð���t��d�j�o�t�i�i�t�ƒ�}�n�t�i�i�t�i�d�ƒ�}�|��i �ƒ��}�d�}�h��}�h��}�xP�|�D]H�}�t�i�i�|�d�|�d�ƒ�|�|�<t�i�i�|�d�|�d �ƒ�|�|�<qa�Wx<�|�D]4�}�t�|�|�ƒ�|��i�|�<t�|�|�ƒ�|��i�|�<q´�Wd �S(���sp��� set up a dictionary of config parsers for default and user configurations respectively t���__main__i����t���maint ���extensionst ���highlightt���keyss���config-s���.defs���.cfgN(���s���mainR?���s ���highlights���keys(���R���R.���R/���t���dirnamet���__file__t���idleDirt���abspatht���sysR ���t ���GetUserCfgDirt���userDirt���configTypest���defCfgFilest���usrCfgFilest���cfgTypet���joinR���R8���R"���R9���(���R ���RD���RK���RJ���RL���RH���RI���(����(����R���R;���«���s ����� �!%�c���������C���s��d�}�t�i�i�d�ƒ�}�|�d�j�o?�t�i�i�|�ƒ�p(�d�|�d�}�t�i�i �|�ƒ�d�}�qd�n�|�d�j�o�t�i �ƒ��}�n�t�i�i�|�|�ƒ�}�t�i�i�|�ƒ�pU�y�t�i�|�ƒ�Wqþ�t �t�f�j �o+�d�|�d�}�t�i�i �|�ƒ�t�‚�qþ�Xn�|�S(���sr��� Creates (if required) and returns a filesystem directory for storing user config files. s���.idlerct���~s.��� Warning: os.path.expanduser("~") points to s ���, but the path does not exist. s2��� Warning: unable to create user config directory s)��� Check path and permissions. Exiting! N(���t���cfgDirR.���R/���t ���expanduserRH���R0���t���warnRF���t���stderrR5���t���getcwdRM���t���mkdirt���OSErrort���IOErrort ���SystemExit(���R ���RO���RQ���RH���(����(����R���RG���À���s&����� c���������C���s¬���|��i�|�i�|�|�ƒ�o!�|��i�|�i�|�|�d�|�ƒSnn�|��i�|�i�|�|�ƒ�o!�|��i�|�i�|�|�d�|�ƒSn3�|�o'�d�|�|�|�f�}�t�i �i�|�ƒ�n�|�Sd�S(���sf�� Get an option value for given config type and given general configuration section/option or return a default. If type is specified, return as type. Firstly the user configuration is checked, with a fallback to the default configuration, and a final 'catch all' fallback to a useable passed-in default if the option isn't present in either the user or the default configuration. configType must be one of ('main','extensions','highlight','keys') If a default is returned, and warn_on_default is True, a warning is printed to stderr. R���s��� Warning: configHandler.py - IdleConf.GetOption - problem retrieving configration option %r from section %r. returning default value: %r N(���R ���R9���t ���configTypeR���R���R���R���R���R8���t���warn_on_defaultR���t���warningRF���RR���R5���(���R ���RX���R���R���R���R���RY���RZ���(����(����R���t ���GetOptionÜ���s���� �!!c���������C���s���|��i�|�i�|�|�|�ƒ�d�S(���s?���In user's config file, set section's option to value. N(���R ���R9���RX���R-���R���R���R+���(���R ���RX���R���R���R+���(����(����R���R-���ø���s�����c���������C���si���|�d �j�o �t�d�‚�n�|�d�j�o�|��i�|�}�n(�|�d�j�o�|��i�|�}�n �t�d�‚�|�i�ƒ��S(���sò��� Get a list of sections from either the user or default config for the given config type. configSet must be either 'user' or 'default' configType must be one of ('main','extensions','highlight','keys') R>���R?���R@���RA���s���Invalid configType specifiedt���userR���s���Invalid configSet specifiedN(���s���mains ���extensionss ���highlights���keys( ���RX���R����t ���configSetR ���R9���t ���cfgParserR8���R���R%���(���R ���R]���RX���R^���(����(����R���t���GetSectionListþ���s����� c���������C���sÜ���|��i�d�i�|�ƒ�o�|��i�d�|�ƒ�}�n�|��i�d�|�ƒ�}�|�|�d�}�|�d�j�o�|�d�}�n�|�|�d�}�h��d�|�<d �|�<}�|�p�|�Sn<�|�d �j�o�|�d�Sn�|�d�j�o�|�d �Sn �t�d�‚�d �S(���s$�� return individual highlighting theme elements. fgBg - string ('fg'or'bg') or None, if None return a dictionary containing fg and bg colours (appropriate for passing to Tkinter in, e.g., a tag_config call), otherwise fg or bg colour only as specified. R@���R���R\���s���-foregroundt���cursors���normal-backgrounds���-backgroundt ���foregroundt ���backgroundt���fgt���bgs���Invalid fgBg specifiedN(���R ���R8���R���t���themet���GetThemeDictt ���themeDictt���elementt���foret���backR@���t���fgBgR���(���R ���Re���Rh���Rk���Rg���Rj���Ri���R@���(����(����R���t���GetHighlight��s ����� c���������C���s½��|�d�j�o�|��i�d�}�n(�|�d�j�o�|��i�d�}�n �t�d�‚�h��d�d�<d�d�<d �d�<d �d�<d�d�<d�d�<d �d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d�d�<d �d�<d!�d�<d"�d�<}�xx�|�i�ƒ��D]j�}�|�i �|�|�ƒ�p+�d#�|�|�|�|�f�}�t�i �i�|�ƒ�n�|�i�|�|�d�|�|�ƒ}�|�|�|�<qKW|�S(%���sj�� type - string, 'default' or 'user' theme type themeName - string, theme name Returns a dictionary which holds {option:value} for each element in the specified theme. Values are loaded over a set of ultimate last fallback defaults to guarantee that all theme elements are present in a newly created theme. R\���R@���R���s���Invalid theme type specifieds���normal-foregrounds���#000000s���normal-backgrounds���#ffffffs���keyword-foregrounds���keyword-backgrounds���builtin-foregrounds���builtin-backgrounds���comment-foregrounds���comment-backgrounds���string-foregrounds���string-backgrounds���definition-foregrounds���definition-backgrounds���hilite-foregrounds���hilite-backgroundt���grays���break-foregrounds���break-backgrounds���hit-foregrounds���hit-backgrounds���error-foregrounds���error-backgrounds���cursor-foregrounds���stdout-foregrounds���stdout-backgrounds���stderr-foregrounds���stderr-backgrounds���console-foregrounds���console-backgroundsˆ��� Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element %r from theme %r. returning default value: %r N(���R���R ���R9���R^���R8���R���Re���RA���Rh���R���t ���themeNameRZ���RF���RR���R5���R���t���colour(���R ���R���Rn���Ro���Rh���Re���RZ���R^���(����(����R���Rf���*��s����� ù �c���������C���s���|��i�d�d�d�d�d�ƒS(���s@��� Returns the name of the currently active theme R>���t���Themet���nameR���t����N(���R ���R[���(���R ���(����(����R���t���CurrentThemeg��s�����c���������C���s���|��i�d�d�d�d�d�ƒS(���sB��� Returns the name of the currently active key set R>���t���KeysRq���R���Rr���N(���R ���R[���(���R ���(����(����R���t���CurrentKeysm��s�����c��� ������C���s(��|��i�|��i�d�d�ƒ�ƒ�}�|��i�|��i�d�d�ƒ�ƒ�}�x,�|�D]$�}�|�|�j�o�|�i�|�ƒ�q=�q=�W|�o´�g��}�x£�|�D]›�}�|��i �d�|�d�d�t �d�d�ƒos�|�p�|�oT�|�o �d�}�n�d�}�|��i �d�|�|�d�t �d�d�d �t�ƒo�|�i�|�ƒ�qq|�i�|�ƒ�qy�qy�W|�Sn�|�Sd �S(���s¡��� Gets a list of all idle extensions declared in the config files. active_only - boolean, if true only return active (enabled) extensions R���R?���R\���t���enableR���R���t ���enable_editort���enable_shellRY���N(���R ���t���RemoveKeyBindNamesR_���t���extnst ���userExtnst���extnt���appendt���active_onlyt���activeExtnsR[���t���Truet���editor_onlyt ���shell_onlyR���t���False( ���R ���R~���R���R‚���Rz���R���R|���R{���R���(����(����R���t ���GetExtensionss��s0������ � c���������C���s‡���|�}�g��}�xH�|�D]@�}�|�i�d�ƒ�p�|�i�d�ƒ�o�|�i�|�i�|�ƒ�ƒ�q�q�W|�i�ƒ��|�i�ƒ��x�|�D] �}�|�|�=qr�W|�S(���Nt ���_bindingst���_cfgBindings( ���t���extnNameListt���namest���kbNameIndiciesRq���t���endswithR}���t���indext���sortt���reverse(���R ���R‡���R‹���Rq���R‰���Rˆ���(����(����R���Ry���”��s����� �c���������C���sl���d�}�d�|�d�}�xQ�|��i�d�d�ƒ�D]=�}�x4�|��i�|�ƒ�i�ƒ��D]�}�|�|�j�o �|�}�qC�qC�Wq'�W|�S(���sü��� Returns the name of the extension that virtualEvent is bound in, or None if not bound in any extension. virtualEvent - string, name of the virtual event to test for, without the enclosing '<< >>' s���<<s���>>R~���i����N( ���R!���t���extNamet���virtualEventt���vEventR ���R„���R|���t���GetExtensionKeysRA���t���event(���R ���R���R���RŽ���R|���R’���(����(����R���t���GetExtnNameForEvent¡��s������� c��� ������C���s„���|�d�}�|��i�ƒ��}�h��}�|��i�d�i�|�ƒ�oM�|��i�d�i�|�ƒ�}�x4�|�D](�}�d�|�d�}�|�|�}�|�|�|�<qP�Wn�|�S(���så��� returns a dictionary of the configurable keybindings for a particular extension,as they exist in the dictionary returned by GetCurrentKeySet; that is, where previously used bindings are disabled. R†���R?���s���<<s���>>N( ���t ���extensionNamet���keysNameR ���t���GetCurrentKeySett ���activeKeyst���extKeysR8���R���R���t ���eventNamest ���eventNameR’���t���binding( ���R ���R”���R—���R›���R˜���R’���Rš���R™���R•���(����(����R���R‘���°��s����� � c���������C���s���|�d�}�h��}�|��i�d�i�|�ƒ�od�|��i�d�i�|�ƒ�}�xK�|�D]?�}�|��i �d�|�|�d�d�ƒi �ƒ��}�d�|�d�}�|�|�|�<qD�Wn�|�S(���sÉ��� returns a dictionary of the configurable keybindings for a particular extension, as defined in the configuration files, or an empty dictionary if no bindings are found R†���R?���R���Rr���s���<<s���>>N( ���R”���R•���R˜���R ���R8���R���R���R™���Rš���R[���t���splitR›���R’���(���R ���R”���R›���R˜���R’���Rš���R™���R•���(����(����R���t���__GetRawExtensionKeysÁ��s����� �c���������C���s˜���|�d�}�|��i�|�ƒ�}�|��i�d�i�|�ƒ�od�|��i�d�i�|�ƒ�}�xK�|�D]?�}�|��i �d�|�|�d�d�ƒi�ƒ��}�d�|�d�}�|�|�|�<qM�Wn�|�S(���s �� Returns a dictionary of all the event bindings for a particular extension. The configurable keybindings are returned as they exist in the dictionary returned by GetCurrentKeySet; that is, where re-used keybindings are disabled. R…���R?���R���Rr���s���<<s���>>N(���R”���t ���bindsNameR ���R‘���t���extBindsR8���R���R���R™���Rš���R[���Rœ���R›���R’���(���R ���R”���R›���Rš���R™���Rž���RŸ���R’���(����(����R���t���GetExtensionBindingsÒ��s����� �c���������C���s2���|�d�d�!}�|��i�d�|�|�d�d�ƒi�ƒ��}�|�S(���sõ��� returns the keybinding for a specific event. keySetName - string, name of key binding set eventStr - string, the virtual event we want the binding for, represented as a string, eg. '<<event>>' i���iþÿÿÿRA���R���Rr���N(���t���eventStrRš���R ���R[���t ���keySetNameRœ���R›���(���R ���R¢���R¡���Rš���R›���(����(����R���t ���GetKeyBindingæ��s����� !c���������C���s���|��i�|��i�ƒ��ƒ�S(���N(���R ���t ���GetKeySetRu���(���R ���(����(����R���R–���ñ��s����c���������C���sš���|��i�|�ƒ�}�|��i�d�d�ƒ�}�xr�|�D]j�}�|��i�|�ƒ�}�|�oN�xK�|�i �ƒ��D]9�}�|�|�|�i�ƒ��j�o�d�|�|�<n�|�|�|�|�<qQ�Wq(�q(�W|�S(���sæ��� Returns a dictionary of: all requested core keybindings, plus the keybindings for all currently active extensions. If a binding defined in an extension is already in use, that binding is disabled. R~���i���Rr���N(���R ���t���GetCoreKeysR¢���t���keySetR„���R���R|���t���_IdleConf__GetRawExtensionKeysR˜���RA���R’���t���values(���R ���R¢���R���R˜���R¦���R|���R’���(����(����R���R¤���ô��s������ �c���������C���s���d�|�d�|��i�ƒ��i�ƒ��j�S(���sÕ��� returns true if the virtual event is bound in the core idle keybindings. virtualEvent - string, name of the virtual event to test for, without the enclosing '<< >>' s���<<s���>>N(���R���R ���R¥���RA���(���R ���R���(����(����R���t ���IsCoreBinding��s�����c���������C���sÁ��h��d�d�d�g�<d�d�d�g�<d�d�d �g�<d �d�d�g�<d �d�g�<d�d�g�<d�d�g�<d�d�g�<d�d�g�<d�d�g�<d�d�g�<d�d�g�<d�d�g�<d�d�g�<d�d �g�<d!�d"�g�<d#�d$�g�<d%�d&�g�<d'�d(�g�<d)�d*�g�<d+�d,�g�<d-�d.�g�<d/�d0�g�<d1�d2�g�<d3�d4�g�<d5�d6�g�<d7�d8�g�<d9�d:�g�<d;�d<�g�<d=�d>�g�<d?�d@�dA�g�<dB�dC�g�<dD�dE�g�<dF�dG�g�<dH�dI�g�<dJ�dK�g�<dL�dM�g�<dN�dO�g�<dP�dQ�g�<dR�dS�g�<dT�dU�g�<dV�dW�g�<dX�dY�g�<dZ�d[�g�<d\�d]�g�<d^�d_�g�<d`�da�g�<}�|�oi�xb�|�i�ƒ��D]T�}�|��i�|�|�ƒ�}�|�o�|�|�|�<n(�db�|�|�|�|�f�}�t�i �i �|�ƒ�q]Wn�|�Sdc�S(d���sZ�� returns the requested set of core keybindings, with fallbacks if required. Keybindings loaded from the config file(s) are loaded _over_ these defaults, so if there is a problem getting any core binding there will be an 'ultimate last resort fallback' to the CUA-ish bindings defined here. s���<<copy>>s���<Control-c>s���<Control-C>s���<<cut>>s���<Control-x>s���<Control-X>s ���<<paste>>s���<Control-v>s���<Control-V>s���<<beginning-of-line>>s���<Control-a>s���<Home>s���<<center-insert>>s���<Control-l>s���<<close-all-windows>>s���<Control-q>s���<<close-window>>s���<Alt-F4>s���<<do-nothing>>s���<<end-of-file>>s���<Control-d>s���<<python-docs>>s���<F1>s���<<python-context-help>>s ���<Shift-F1>s���<<history-next>>s���<Alt-n>s���<<history-previous>>s���<Alt-p>s���<<interrupt-execution>>s���<<view-restart>>s���<F6>s���<<restart-shell>>s���<Control-F6>s���<<open-class-browser>>s���<Alt-c>s���<<open-module>>s���<Alt-m>s���<<open-new-window>>s���<Control-n>s���<<open-window-from-file>>s���<Control-o>s���<<plain-newline-and-indent>>s���<Control-j>s���<<print-window>>s���<Control-p>s���<<redo>>s���<Control-y>s���<<remove-selection>>s���<Escape>s���<<save-copy-of-window-as-file>>s ���<Alt-Shift-S>s���<<save-window-as-file>>s���<Alt-s>s���<<save-window>>s���<Control-s>s���<<select-all>>s���<Alt-a>s���<<toggle-auto-coloring>>s���<Control-slash>s���<<undo>>s���<Control-z>s���<<find-again>>s���<Control-g>s���<F3>s���<<find-in-files>>s���<Alt-F3>s���<<find-selection>>s���<Control-F3>s���<<find>>s���<Control-f>s���<<replace>>s���<Control-h>s ���<<goto-line>>s���<Alt-g>s���<<smart-backspace>>s���<Key-BackSpace>s���<<newline-and-indent>>s���<Key-Return> <Key-KP_Enter>s���<<smart-indent>>s ���<Key-Tab>s���<<indent-region>>s���<Control-Key-bracketright>s���<<dedent-region>>s���<Control-Key-bracketleft>s���<<comment-region>>s���<Alt-Key-3>s���<<uncomment-region>>s���<Alt-Key-4>s���<<tabify-region>>s���<Alt-Key-5>s���<<untabify-region>>s���<Alt-Key-6>s���<<toggle-tabs>>s���<Alt-Key-t>s���<<change-indentwidth>>s���<Alt-Key-u>s‘��� Warning: configHandler.py - IdleConf.GetCoreKeys - problem retrieving key binding for event %r from key set %r. returning default value: %r N(���t���keyBindingsR¢���RA���R’���R ���R£���R›���RZ���RF���RR���R5���(���R ���R¢���R›���RZ���Rª���R’���(����(����R���R¥�����s�����ÿ�ÿ�K1 �c��� ������C���s��g��}�|�d�j�o�|��i�d�}�n(�|�d�j�o�|��i�d�}�n �t�d�‚�|�i�d�ƒ�}�x¦�|�D]ž�}�|�i �d�|�d�d�ƒ}�|�i�d�ƒ�d�j�o�d�}�d�}�n3�t�i�|�d�ƒ�}�|�d �i�ƒ��}�|�d �i�ƒ��}�|�o!�|�o�|�i�|�|�|�f�ƒ�qa�qa�W|�i�|��i�ƒ�|�S(���s¹��Fetch 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'. R\���R>���R���s���Invalid configSet specifiedt ���HelpFilest���;iÿÿÿÿRr���i����i���N(���t���helpSourcesR]���R ���R9���R^���R8���R���R���R���R���R���R+���t���findt���menuItemt���helpPatht���stringRœ���t���stripR}���RŒ���t���_IdleConf__helpsort( ���R ���R]���R^���R���R°���R+���R¯���R���R���(����(����R���t���GetExtraHelpSourceListV��s*���� � � c���������C���sZ���t��|�d�ƒ�t��|�d�ƒ�j��o�d�Sn.�t��|�d�ƒ�t��|�d�ƒ�j�o�d�Sn�d�Sd��S(���Ni���iÿÿÿÿi���i����(���R���t���h1t���h2(���R ���Rµ���R¶���(����(����R���t ���__helpsortv��s ����!!c���������C���s ���|��i�d�ƒ�|��i�d�ƒ�}�|�S(���sÝ��� Returns a list of tuples containing the details of all additional help sources configured, or an empty list if there are none. Tuples are of the format returned by GetExtraHelpSourceList. R���R\���N(���R ���R´���t���allHelpSources(���R ���R¸���(����(����R���t���GetAllExtraHelpSourcesList~��s�����c���������C���s@���x9�|��i�i�ƒ��D](�}�|��i�|�i�ƒ��|��i�|�i�ƒ��q�Wd�S(���s/��� load all configuration files. N(���R ���R8���RA���t���keyR���R9���(���R ���Rº���(����(����R���R<���ˆ��s ������c���������C���s/���x(�|��i�i�ƒ��D]�}�|��i�|�i�ƒ��q�Wd�S(���sH��� write all loaded user configuration files back to disk N(���R ���R9���RA���Rº���R6���(���R ���Rº���(����(����R���t���SaveUserCfgFiles��s������( ���R���R���R ���R ���R;���RG���R!���R€���R[���R-���R_���Rl���Rf���Rs���Ru���Rƒ���R„���Ry���R“���R‘���R§���R ���R£���R–���R¤���R©���R¥���R´���R³���R¹���R<���R»���(����(����(����R���R7���•���s6��� � = ! H R=���c���������C���sž���d�G|��Gd�GHxŠ�|��i�ƒ��D]|�}�|��|�i�ƒ��}�|�GH|�GHxY�|�D]Q�}�|��|�i�|�ƒ�}�|�GH|�GHx+�|�D]#�}�|�Gd�G|��|�i�|�|�ƒ�GHqk�WqA�Wq�Wd��S(���Ns��� t���=(���R:���RA���Rº���R%���R���R���R���R���(���R:���R���R���Rº���R%���R���(����(����R���t���dumpCfg›��s���� ���R>���Rp���Rq���(���R ���R.���RF���R±���R���t ���NoOptionErrort���NoSectionErrort ���ExceptionR����R���R���R���R���R"���R7���t���idleConfR���R½���R8���R9���R���(���R���R���R±���R���R"���R���R7���RF���R½���R¾���R¿���RÁ���R.���R����R���(����(����R���t���?���s&��� +Lÿ�ÿ�