summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-28 22:00:30 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-28 22:00:30 (GMT)
commit85ef9dce9f4b1982c1f26daa0fe9f4af08e124a6 (patch)
tree61716af73197972e523a714a620ebf8d68c5c3bf /Tools
parente11e3dee3e4f467d51c9d36e24b0b09e64eab295 (diff)
downloadcpython-85ef9dce9f4b1982c1f26daa0fe9f4af08e124a6.zip
cpython-85ef9dce9f4b1982c1f26daa0fe9f4af08e124a6.tar.gz
cpython-85ef9dce9f4b1982c1f26daa0fe9f4af08e124a6.tar.bz2
Add Quit button to the debugger window.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/Debugger.py6
1 files changed, 6 insertions, 0 deletions
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):