mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
keybinding configuration
This commit is contained in:
parent
facfc09352
commit
68d7336cb0
2 changed files with 45 additions and 27 deletions
|
@ -595,8 +595,9 @@ class ConfigDialog(Toplevel):
|
|||
listIndex=self.listBindings.index(ANCHOR)
|
||||
binding=self.listBindings.get(listIndex)
|
||||
bindName=binding.split()[0] #first part, up to first space
|
||||
newKeys=GetKeysDialog(self,'Get New Keys',bindName)
|
||||
print newKeys.result
|
||||
currentKeySet=idleConf.CurrentKeys()
|
||||
currentKeySequences=idleConf.GetKeys(currentKeySet).values()
|
||||
newKeys=GetKeysDialog(self,'Get New Keys',bindName,currentKeySequences)
|
||||
if newKeys.result: #new keys were specified
|
||||
self.listBindings.delete(listIndex)
|
||||
self.listBindings.insert(listIndex,bindName+' - '+newKeys.result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue