diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2004-06-06 01:29:22 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2004-06-06 01:29:22 (GMT) |
commit | 4d5bc6031ca883201f87e0e3c94e5746f9f91439 (patch) | |
tree | bebdc12778178ff31a076a6e6709e705531fc7c7 /Lib/idlelib/EditorWindow.py | |
parent | cfa157d808d387551e3973c6e4e8e5eebca3b051 (diff) | |
download | cpython-4d5bc6031ca883201f87e0e3c94e5746f9f91439.zip cpython-4d5bc6031ca883201f87e0e3c94e5746f9f91439.tar.gz cpython-4d5bc6031ca883201f87e0e3c94e5746f9f91439.tar.bz2 |
Noam Raphel: Further developemt of CodeContext feature.
The visibility state of the code context pane is now persistent between
sessions and the pane does not appear in the shell window.
M CodeContext.py
M EditorWindow.py
M NEWS.txt
M PyShell.py
M config-extensions.def
M configHandler.py
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 605d34c..36cbb14 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -751,14 +751,16 @@ class EditorWindow: traceback.print_exc() def get_standard_extension_names(self): - return idleConf.GetExtensions() + return idleConf.GetExtensions(editor_only=True) def load_extension(self, name): mod = __import__(name, globals(), locals(), []) cls = getattr(mod, name) + keydefs = idleConf.GetExtensionBindings(name) + if hasattr(cls, "menudefs"): + self.fill_menus(cls.menudefs, keydefs) ins = cls(self) self.extensions[name] = ins - keydefs=idleConf.GetExtensionBindings(name) if keydefs: self.apply_bindings(keydefs) for vevent in keydefs.keys(): @@ -770,8 +772,6 @@ 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 def apply_bindings(self, keydefs=None): |