]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add Quit button to the debugger window.
authorGuido van Rossum <guido@python.org>
Thu, 28 Jan 1999 22:00:30 +0000 (22:00 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 28 Jan 1999 22:00:30 +0000 (22:00 +0000)
Tools/idle/Debugger.py

index d155ec8b41aca1d79f0b98c9aa37d7363dd4da58..36665acbd21310a29fb9f0cb10a5033d9731c32f 100644 (file)
@@ -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):