summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/Debugger.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-06-25 03:28:38 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-06-25 03:28:38 (GMT)
commitf8096fbba1f7aa35dd03580b465242eeffcdea83 (patch)
tree4e7903a14edd477a995266ab5025ed9d3245ef07 /Lib/idlelib/Debugger.py
parent7951f60f456cf7ef3b9671c7afceca47b2fb0ec4 (diff)
downloadcpython-f8096fbba1f7aa35dd03580b465242eeffcdea83.zip
cpython-f8096fbba1f7aa35dd03580b465242eeffcdea83.tar.gz
cpython-f8096fbba1f7aa35dd03580b465242eeffcdea83.tar.bz2
Remove all EditorWindow BREAK tags when closing Debugger
Diffstat (limited to 'Lib/idlelib/Debugger.py')
-rw-r--r--Lib/idlelib/Debugger.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/idlelib/Debugger.py b/Lib/idlelib/Debugger.py
index 1039c16..2cca2d9 100644
--- a/Lib/idlelib/Debugger.py
+++ b/Lib/idlelib/Debugger.py
@@ -76,7 +76,15 @@ class Debugger:
return
if self.stackviewer:
self.stackviewer.close(); self.stackviewer = None
+ # Remove all EditWindow BREAK tags when closing debugger:
+ edit_windows = self.pyshell.flist.inversedict.keys()
+ for window in edit_windows:
+ window.text.tag_remove("BREAK", 1.0, END)
+ # Clean up pyshell if user clicked debugger control close widget.
+ # (Causes a harmless extra cycle through close_debugger() if user
+ # toggled debugger from pyshell Debug menu)
self.pyshell.close_debugger()
+ # Now close the debugger control window....
self.top.destroy()
def make_gui(self):