summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/configHandler.py
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2002-02-18 01:43:11 (GMT)
committerSteven M. Gava <elguavas@python.net>2002-02-18 01:43:11 (GMT)
commit4974575609ebee40c08d81e98493750b7199b1e6 (patch)
treeebf9154ccab4771f50ad090c29d35b26f7403879 /Lib/idlelib/configHandler.py
parent6354386d6568e83e0c81c745e79223b570673fe7 (diff)
downloadcpython-4974575609ebee40c08d81e98493750b7199b1e6.zip
cpython-4974575609ebee40c08d81e98493750b7199b1e6.tar.gz
cpython-4974575609ebee40c08d81e98493750b7199b1e6.tar.bz2
handle user theme and key set deletion
Diffstat (limited to 'Lib/idlelib/configHandler.py')
-rw-r--r--Lib/idlelib/configHandler.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py
index 958ac83..9db7120 100644
--- a/Lib/idlelib/configHandler.py
+++ b/Lib/idlelib/configHandler.py
@@ -518,10 +518,16 @@ class IdleConf:
if keySetName:
for event in keyBindings.keys():
binding=self.GetKeyBinding(keySetName,event)
- if binding: #otherwise will keep default
+ if binding:
keyBindings[event]=binding
+ else: #we are going to return a default, print warning
+ warning=('\n Warning: configHandler.py - IdleConf.GetCoreKeys'+
+ ' -\n problem retrieving key binding for event '+
+ `event`+'\n from key set '+`keySetName`+'.\n'+
+ ' returning default value: '+`keyBindings[event]`+'\n')
+ sys.stderr.write(warning)
return keyBindings
-
+
def GetExtraHelpSourceList(self,configSet):
"""
Returns a list of tuples containing the details of any additional