summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2021-01-28 23:13:22 (GMT)
committerGitHub <noreply@github.com>2021-01-28 23:13:22 (GMT)
commit23a567c11ca36eedde0e119443c85cc16075deaf (patch)
treee0081288c0a71ed629d729107a820d1d7a0349bc /Lib/idlelib/pyshell.py
parent64fc105b2d2faaeadd1026d2417b83915af6622f (diff)
downloadcpython-23a567c11ca36eedde0e119443c85cc16075deaf.zip
cpython-23a567c11ca36eedde0e119443c85cc16075deaf.tar.gz
cpython-23a567c11ca36eedde0e119443c85cc16075deaf.tar.bz2
bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)
Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-xLib/idlelib/pyshell.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 0407ca9..0ee2254 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()