summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/editor.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r--Lib/idlelib/editor.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py
index d92b32b..f443766 100644
--- a/Lib/idlelib/editor.py
+++ b/Lib/idlelib/editor.py
@@ -447,10 +447,15 @@ class EditorWindow(object):
window.add_windows_to_menu(menu)
def update_menu_label(self, menu, index, label):
- "Update label for menu item at index ."
+ "Update label for menu item at index."
menuitem = self.menudict[menu]
menuitem.entryconfig(index, label=label)
+ def update_menu_state(self, menu, index, state):
+ "Update state for menu item at index."
+ menuitem = self.menudict[menu]
+ menuitem.entryconfig(index, state=state)
+
def handle_yview(self, event, *args):
"Handle scrollbar."
if event == 'moveto':