diff options
author | Guido van Rossum <guido@python.org> | 1999-01-28 22:00:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-28 22:00:30 (GMT) |
commit | 85ef9dce9f4b1982c1f26daa0fe9f4af08e124a6 (patch) | |
tree | 61716af73197972e523a714a620ebf8d68c5c3bf /Tools | |
parent | e11e3dee3e4f467d51c9d36e24b0b09e64eab295 (diff) | |
download | cpython-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.py | 6 |
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): |