summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/configDialog.py
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2002-01-19 01:30:56 (GMT)
committerSteven M. Gava <elguavas@python.net>2002-01-19 01:30:56 (GMT)
commit68d7336cb06ce84c01ee4307cd9fd23d5b273519 (patch)
tree2b132dd89a340c6a599017b9f1f939fc4121c4ac /Lib/idlelib/configDialog.py
parentfacfc09352f03930d7b5d6362f30c1141a634dc7 (diff)
downloadcpython-68d7336cb06ce84c01ee4307cd9fd23d5b273519.zip
cpython-68d7336cb06ce84c01ee4307cd9fd23d5b273519.tar.gz
cpython-68d7336cb06ce84c01ee4307cd9fd23d5b273519.tar.bz2
keybinding configuration
Diffstat (limited to 'Lib/idlelib/configDialog.py')
-rw-r--r--Lib/idlelib/configDialog.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py
index a45188b..2b13391 100644
--- a/Lib/idlelib/configDialog.py
+++ b/Lib/idlelib/configDialog.py
@@ -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)