mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Add Quit button to the debugger window.
This commit is contained in:
parent
e11e3dee3e
commit
85ef9dce9f
1 changed files with 6 additions and 0 deletions
|
|
@ -65,6 +65,8 @@ class Debugger(bdb.Bdb):
|
||||||
bl.append(b)
|
bl.append(b)
|
||||||
self.bret = b = Button(bframe, text="Out", command=self.ret)
|
self.bret = b = Button(bframe, text="Out", command=self.ret)
|
||||||
bl.append(b)
|
bl.append(b)
|
||||||
|
self.bret = b = Button(bframe, text="Quit", command=self.quit)
|
||||||
|
bl.append(b)
|
||||||
#
|
#
|
||||||
for b in bl:
|
for b in bl:
|
||||||
b.configure(state="disabled")
|
b.configure(state="disabled")
|
||||||
|
|
@ -200,6 +202,10 @@ class Debugger(bdb.Bdb):
|
||||||
self.set_return(self.frame)
|
self.set_return(self.frame)
|
||||||
self.root.quit()
|
self.root.quit()
|
||||||
|
|
||||||
|
def quit(self):
|
||||||
|
self.set_quit()
|
||||||
|
self.root.quit()
|
||||||
|
|
||||||
stackviewer = None
|
stackviewer = None
|
||||||
|
|
||||||
def show_stack(self):
|
def show_stack(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue