diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-01-29 01:47:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 01:47:41 (GMT) |
commit | 901a9834420e516c07d6cad356d2be481db6d8d1 (patch) | |
tree | 418fe88925f207a8a5e06db5b2d5b9303fffaa38 /Lib/idlelib/pyshell.py | |
parent | 81b23a9b148b60f8f541e4b06e1d88c58644e3b8 (diff) | |
download | cpython-901a9834420e516c07d6cad356d2be481db6d8d1.zip cpython-901a9834420e516c07d6cad356d2be481db6d8d1.tar.gz cpython-901a9834420e516c07d6cad356d2be481db6d8d1.tar.bz2 |
bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163) (#24366)
Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE.
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 23a567c11ca36eedde0e119443c85cc16075deaf)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-x | Lib/idlelib/pyshell.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index d32106c..fea3762 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -989,6 +989,10 @@ class PyShell(OutputWindow): self.showprompt() self.set_debugger_indicator() + def debug_menu_postcommand(self): + state = 'disabled' if self.executing else 'normal' + self.update_menu_state('debug', '*tack*iewer', state) + def beginexecuting(self): "Helper for ModifiedInterpreter" self.resetoutput() |