Only pop up the stack viewer when requested in the Debug menu.
authorGuido van Rossum <guido@python.org>
Tue, 16 Feb 1999 22:34:17 +0000 (22:34 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 16 Feb 1999 22:34:17 +0000 (22:34 +0000)
Tools/idle/ScriptBinding.py

index 12dedb6581b3954d2ff65e7b3aac1a63c6176e5f..0e7810b1cca89057e216e1a2e98db343bb4d35f9 100644 (file)
@@ -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: