-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
IDLE: Disable F5, etc, in Shell and Output windows. #82779
Comments
When the Shell is active, the Run menu is disabled, but its shortcuts are not. These are F5 Run Module, Shift-F5 Run ... Custom, and Alt-X Check Module. If Shell has not been saved, the shortcuts do nothing, but once Shell has been saved, they try to compile the entire shell session. The result is that the '3' in 'Python 3.8 ...' on the first line is highlighted as an error and the SyntaxError box pops up. When the box is dismissed, the cursor is placed after the '3'. Instead of calling compile, IDLE should beep and continue. |
Trying to compile grep output is also bad. The ultimate fix is to subclass the specialized code editor from the general text editor, instead of vice versa as at present, but I leave that for later, and will simply check if the window about to be compiled is an instance of OutputWindow (which is also the PyShell superclass). |
As a better design for a long-term fix, I suggest:
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: