mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
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').
This commit is contained in:
parent
a361e89d5a
commit
33c7420e7d
7 changed files with 11 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue