From: Guido van Rossum Date: Tue, 16 Feb 1999 22:34:17 +0000 (+0000) Subject: Only pop up the stack viewer when requested in the Debug menu. X-Git-Tag: v1.5.2b2~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ea32898dbfe88426f031d60126e44d5279e2ded;p=thirdparty%2FPython%2Fcpython.git Only pop up the stack viewer when requested in the Debug menu. --- diff --git a/Tools/idle/ScriptBinding.py b/Tools/idle/ScriptBinding.py index 12dedb6581b3..0e7810b1cca8 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: