summaryrefslogtreecommitdiffstats
path: root/Tools/idle/StackViewer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle/StackViewer.py')
-rw-r--r--Tools/idle/StackViewer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/idle/StackViewer.py b/Tools/idle/StackViewer.py
index 93923f9..d4b8baa 100644
--- a/Tools/idle/StackViewer.py
+++ b/Tools/idle/StackViewer.py
@@ -14,6 +14,7 @@ class StackBrowser:
def __init__(self, root, flist, stack=None):
self.top = top = ListedToplevel(root)
top.protocol("WM_DELETE_WINDOW", self.close)
+ top.bind("<Key-Escape>", self.close)
top.wm_title("Stack viewer")
top.wm_iconname("Stack")
# Create help label
@@ -27,7 +28,7 @@ class StackBrowser:
stack = get_stack()
self.sv.load_stack(stack)
- def close(self):
+ def close(self, event=None):
self.top.destroy()
localsframe = None