-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-35555: IDLE: Gray out Code Context menu item on non-editors #11282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
After looking through the code and checking the usages of |
Looks good. We needed to work you how to best do this for other things as well. |
@terryjreedy: Please replace |
Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-11300 is a backport of this pull request to the 3.7 branch. |
…onGH-11282) The Code Context menu item only works on Editor windows so disable it for others. (cherry picked from commit 8874f51) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
@@ -0,0 +1 @@ | |||
Gray out Code Context menu entry when it's not applicable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting this in the macOS instead of IDLE section confused Ned into thinking this was a Mac-only change. We should check each other's blurb directories. It is too easy to get the wrong one.
The Code Context menu item only works on Editor windows, so this will disable the option on windows where it's not available.
https://bugs.python.org/issue35555