summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2002-01-19 10:41:51 (GMT)
committerSteven M. Gava <elguavas@python.net>2002-01-19 10:41:51 (GMT)
commit72c3bf076f785aaf54d63a7e8cae29bc8282920e (patch)
tree25a7d261d1cd962735f40dc038fd51ce5b1edf99 /Lib/idlelib/EditorWindow.py
parentc628a06c709dcf0d96ad55a475a5a1318d06dba4 (diff)
downloadcpython-72c3bf076f785aaf54d63a7e8cae29bc8282920e.zip
cpython-72c3bf076f785aaf54d63a7e8cae29bc8282920e.tar.gz
cpython-72c3bf076f785aaf54d63a7e8cae29bc8282920e.tar.bz2
changeover to new keybinding configuration implementation
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 237a462..bba1702 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -590,17 +590,7 @@ class EditorWindow:
cls = getattr(mod, name)
ins = cls(self)
self.extensions[name] = ins
- kdnames = ["keydefs"]
- if sys.platform == 'win32':
- kdnames.append("windows_keydefs")
- elif sys.platform == 'mac':
- kdnames.append("mac_keydefs")
- else:
- kdnames.append("unix_keydefs")
- keydefs = {}
- for kdname in kdnames:
- if hasattr(ins, kdname):
- keydefs.update(getattr(ins, kdname))
+ keydefs=idleConf.GetExtensionBindings(name)
if keydefs:
self.apply_bindings(keydefs)
for vevent in keydefs.keys():
@@ -612,6 +602,7 @@ class EditorWindow:
methodname = methodname + "_event"
if hasattr(ins, methodname):
self.text.bind(vevent, getattr(ins, methodname))
+
if hasattr(ins, "menudefs"):
self.fill_menus(ins.menudefs, keydefs)
return ins