diff options
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': |