aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/idlelib/outwin.py
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2018-12-28 13:15:30 -0500
committerTerry Jan Reedy <tjreedy@udel.edu>2018-12-28 13:15:30 -0500
commit804a5d94b6b7f8cb8546112aee2bc3af362f28f5 (patch)
treecbb5a9d6df5ba73c39862e1896b86fb5cef132ce /Lib/idlelib/outwin.py
parent9e00d9e88fbf943987e4771c753f5ca8f794103e (diff)
downloadcpython-804a5d94b6b7f8cb8546112aee2bc3af362f28f5.tar.gz
cpython-804a5d94b6b7f8cb8546112aee2bc3af362f28f5.zip
IDLE: Create function to update menu item state. (GH-11343)
This will be needed for other menu items. Change outwin to call the function instead of updating the menu item directly.
Diffstat (limited to 'Lib/idlelib/outwin.py')
-rw-r--r--Lib/idlelib/outwin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/idlelib/outwin.py b/Lib/idlelib/outwin.py
index f6361eb9aef..ecc53ef0195 100644
--- a/Lib/idlelib/outwin.py
+++ b/Lib/idlelib/outwin.py
@@ -78,8 +78,7 @@ class OutputWindow(EditorWindow):
EditorWindow.__init__(self, *args)
self.text.bind("<<goto-file-line>>", self.goto_file_line)
self.text.unbind("<<toggle-code-context>>")
- self.menudict['options'].entryconfig('*Code Context',
- state='disabled')
+ self.update_menu_state('options', '*Code Context', 'disabled')
# Customize EditorWindow
def ispythonsource(self, filename):