From 0291d1d1d6d6b9f4d53c61a897db05035bce00b7 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 9 Jan 1999 21:58:11 +0000 Subject: [PATCH] Close on ESC. --- Tools/idle/StackViewer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/idle/StackViewer.py b/Tools/idle/StackViewer.py index 93923f9a27d..d4b8baae1a8 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("", 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