diff options
author | Cheryl Sabella <cheryl.sabella@gmail.com> | 2018-12-22 06:25:45 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-12-22 06:25:45 (GMT) |
commit | c1b4b0f6160e1919394586f44b12538505fed300 (patch) | |
tree | 847a401a62c7dae4bb6a28eb60f66bf5a02933f1 /Lib/idlelib/editor.py | |
parent | 87667c54c6650751c5d7bf7b9e465c8c4af45f71 (diff) | |
download | cpython-c1b4b0f6160e1919394586f44b12538505fed300.zip cpython-c1b4b0f6160e1919394586f44b12538505fed300.tar.gz cpython-c1b4b0f6160e1919394586f44b12538505fed300.tar.bz2 |
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
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r-- | Lib/idlelib/editor.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index 6689af6..d92b32b 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': |