mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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
This commit is contained in:
parent
87667c54c6
commit
c1b4b0f616
8 changed files with 39 additions and 11 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue