From 85ef9dce9f4b1982c1f26daa0fe9f4af08e124a6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 28 Jan 1999 22:00:30 +0000 Subject: Add Quit button to the debugger window. --- Tools/idle/Debugger.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/idle/Debugger.py b/Tools/idle/Debugger.py index d155ec8..36665ac 100644 --- a/Tools/idle/Debugger.py +++ b/Tools/idle/Debugger.py @@ -65,6 +65,8 @@ class Debugger(bdb.Bdb): bl.append(b) self.bret = b = Button(bframe, text="Out", command=self.ret) bl.append(b) + self.bret = b = Button(bframe, text="Quit", command=self.quit) + bl.append(b) # for b in bl: b.configure(state="disabled") @@ -200,6 +202,10 @@ class Debugger(bdb.Bdb): self.set_return(self.frame) self.root.quit() + def quit(self): + self.set_quit() + self.root.quit() + stackviewer = None def show_stack(self): -- cgit v0.12