From 964fbbbc61afd04a90bd1a48b4a984943a128051 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 5 Oct 1998 21:15:08 +0000 Subject: [PATCH] Added Alt-w bindings --- Tools/pynche/ListViewer.py | 3 +++ Tools/pynche/TextViewer.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Tools/pynche/ListViewer.py b/Tools/pynche/ListViewer.py index d8ab85f601..45a3ac563e 100644 --- a/Tools/pynche/ListViewer.py +++ b/Tools/pynche/ListViewer.py @@ -25,12 +25,15 @@ class ListViewer: self.__sb = switchboard self.__lastbox = None self.__dontcenter = 0 + # GUI root = self.__root = Toplevel(parent, class_='Pynche') root.protocol('WM_DELETE_WINDOW', self.__withdraw) root.title('Pynche %s' % __version__) root.iconname('Pynche Color List') root.bind('', self.__quit) root.bind('', self.__quit) + root.bind('', self.__withdraw) + root.bind('', self.__withdraw) # # create the canvas which holds everything, and its scrollbar # diff --git a/Tools/pynche/TextViewer.py b/Tools/pynche/TextViewer.py index 9e77a021d8..0479d8c8dc 100644 --- a/Tools/pynche/TextViewer.py +++ b/Tools/pynche/TextViewer.py @@ -29,6 +29,8 @@ class TextViewer: root.iconname('Pynche Text Window') root.bind('', self.__quit) root.bind('', self.__quit) + root.bind('', self.__withdraw) + root.bind('', self.__withdraw) # # create the text widget # -- 2.50.0