summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-09 21:58:11 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-09 21:58:11 (GMT)
commit0291d1d1d6d6b9f4d53c61a897db05035bce00b7 (patch)
treeafd00ee31004217b8468c2f5704d2cbcee68cd22 /Tools
parentdd0d3357584689e140da8b79a15f916aa8ec2872 (diff)
downloadcpython-0291d1d1d6d6b9f4d53c61a897db05035bce00b7.zip
cpython-0291d1d1d6d6b9f4d53c61a897db05035bce00b7.tar.gz
cpython-0291d1d1d6d6b9f4d53c61a897db05035bce00b7.tar.bz2
Close on ESC.
Diffstat (limited to 'Tools')
-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