Kaydet (Commit) 8874f511 authored tarafından Cheryl Sabella's avatar Cheryl Sabella Kaydeden (comit) Terry Jan Reedy

bpo-35555: IDLE: Gray out Code Context menu item on non-editors (#11282)

The Code Context menu item only works on Editor windows so disable it for others.
üst 44a3ee07
......@@ -3,6 +3,8 @@ Released on 2019-10-20?
======================================
bpo-35555: Gray out Code Context menu entry when it's not applicable.
bpo-22703: Improve the Code Context and Zoom Height menu labels.
The Code Context menu label now toggles between Show/Hide Code Context.
The Zoom Height menu now toggles between Zoom/Restore Height.
......
......@@ -78,6 +78,8 @@ 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')
# Customize EditorWindow
def ispythonsource(self, filename):
......
Gray out Code Context menu entry when it's not applicable.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment