summaryrefslogtreecommitdiffstats
path: root/Tools/idle/EditorWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle/EditorWindow.py')
-rw-r--r--Tools/idle/EditorWindow.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py
index fc8a8f1..24b62dc 100644
--- a/Tools/idle/EditorWindow.py
+++ b/Tools/idle/EditorWindow.py
@@ -82,17 +82,18 @@ class EditorWindow:
self.saved_change_hook()
menu_specs = [
- ("file", "File"),
- ("edit", "Edit"),
- ("help", "Help"),
+ ("file", "_File"),
+ ("edit", "_Edit"),
+ ("help", "_Help"),
]
def createmenubar(self):
mbar = self.menubar
self.menudict = mdict = {}
for name, label in self.menu_specs:
+ underline, label = self.Bindings.prepstr(label)
mdict[name] = menu = Menu(mbar, name=name)
- mbar.add_cascade(label=label, menu=menu)
+ mbar.add_cascade(label=label, menu=menu, underline=underline)
self.Bindings.fill_menus(self.text, mdict)
def about_dialog(self, event=None):