From 9ea32898dbfe88426f031d60126e44d5279e2ded Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 16 Feb 1999 22:34:17 +0000 Subject: [PATCH] Only pop up the stack viewer when requested in the Debug menu. --- Tools/idle/ScriptBinding.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/idle/ScriptBinding.py b/Tools/idle/ScriptBinding.py index 12dedb6581b..0e7810b1cca 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("<>"): from StackViewer import StackBrowser sv = StackBrowser(self.root, self.flist) finally: