summaryrefslogtreecommitdiffstats
path: root/Tools/idle/ScriptBinding.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-02-16 22:34:17 (GMT)
committerGuido van Rossum <guido@python.org>1999-02-16 22:34:17 (GMT)
commit9ea32898dbfe88426f031d60126e44d5279e2ded (patch)
treeb3724373257c64a54164be3f6b89b29f2c4ba742 /Tools/idle/ScriptBinding.py
parent6724835959a1d38da7bb7e047b16610c17623a11 (diff)
downloadcpython-9ea32898dbfe88426f031d60126e44d5279e2ded.zip
cpython-9ea32898dbfe88426f031d60126e44d5279e2ded.tar.gz
cpython-9ea32898dbfe88426f031d60126e44d5279e2ded.tar.bz2
Only pop up the stack viewer when requested in the Debug menu.
Diffstat (limited to 'Tools/idle/ScriptBinding.py')
-rw-r--r--Tools/idle/ScriptBinding.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/idle/ScriptBinding.py b/Tools/idle/ScriptBinding.py
index 12dedb6..0e7810b 100644
--- a/Tools/idle/ScriptBinding.py
+++ b/Tools/idle/ScriptBinding.py
@@ -131,7 +131,8 @@ class ScriptBinding:
sys.last_traceback) = sys.exc_info()
linecache.checkcache()
traceback.print_exc()
- if not debugger:
+ if not debugger and \
+ self.editwin.getvar("<<toggle-jit-stack-viewer>>"):
from StackViewer import StackBrowser
sv = StackBrowser(self.root, self.flist)
finally: