Add Quit button to the debugger window.

This commit is contained in:
Guido van Rossum 1999-01-28 22:00:30 +00:00
parent e11e3dee3e
commit 85ef9dce9f
1 changed files with 6 additions and 0 deletions

View 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):