mirror of
https://github.com/python/cpython.git
synced 2025-08-29 21:25:01 +00:00
handle user theme and key set deletion
This commit is contained in:
parent
6354386d65
commit
4974575609
3 changed files with 87 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue