From c1b4b0f6160e1919394586f44b12538505fed300 Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Sat, 22 Dec 2018 01:25:45 -0500 Subject: bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214) The Code Context menu label now toggles between Show/Hide Code Context. The Zoom Height menu now toggles between Zoom/Restore Height. Zoom Height has moved from the Window menu to the Options menu. https://bugs.python.org/issue22703 --- Lib/idlelib/editor.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/idlelib/editor.py') diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index 6689af64c42..d92b32b2400 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -446,6 +446,11 @@ class EditorWindow(object): menu.delete(self.wmenu_end+1, end) window.add_windows_to_menu(menu) + def update_menu_label(self, menu, index, label): + "Update label for menu item at index ." + menuitem = self.menudict[menu] + menuitem.entryconfig(index, label=label) + def handle_yview(self, event, *args): "Handle scrollbar." if event == 'moveto': -- cgit v1.2.3