diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2018-06-21 02:49:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-21 02:49:55 (GMT) |
commit | 33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33 (patch) | |
tree | 032fbff7d96359683fb006d5e0b68a0c2ab139f7 /Lib/idlelib/editor.py | |
parent | a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77 (diff) | |
download | cpython-33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33.zip cpython-33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33.tar.gz cpython-33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33.tar.bz2 |
bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)
Every other menudef key is the lowercase version of the
corresponding main menu entry (in this case, 'Window').
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r-- | Lib/idlelib/editor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index 3f034f8..1a16389 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -267,7 +267,7 @@ class EditorWindow(object): self.saved_change_hook() self.update_recent_files_list() self.load_extensions() - menu = self.menudict.get('windows') + menu = self.menudict.get('window') if menu: end = menu.index("end") if end is None: @@ -410,7 +410,7 @@ class EditorWindow(object): ("format", "F_ormat"), ("run", "_Run"), ("options", "_Options"), - ("windows", "_Window"), + ("window", "_Window"), ("help", "_Help"), ] @@ -437,7 +437,7 @@ class EditorWindow(object): def postwindowsmenu(self): # Only called when Window menu exists - menu = self.menudict['windows'] + menu = self.menudict['window'] end = menu.index("end") if end is None: end = -1 |