mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
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>
This commit is contained in:
parent
64fc105b2d
commit
23a567c11c
6 changed files with 37 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue