Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6404ad commit 8e8b9baCopy full SHA for 8e8b9ba
1 file changed
Lib/idlelib/EditorWindow.py
@@ -821,7 +821,11 @@ def ApplyKeybindings(self):
821
menuEventDict[menu[0]][prepstr(item[0])[1]] = item[1]
822
for menubarItem in self.menudict:
823
menu = self.menudict[menubarItem]
824
- end = menu.index(END) + 1
+ end = menu.index(END)
825
+ if end is None:
826
+ # Skip empty menus
827
+ continue
828
+ end += 1
829
for index in range(0, end):
830
if menu.type(index) == 'command':
831
accel = menu.entrycget(index, 'accelerator')
0 commit comments