Add Quit button to the debugger window.
This commit is contained in:
parent
e11e3dee3e
commit
85ef9dce9f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue