From: Barry Warsaw Date: Mon, 5 Oct 1998 21:15:08 +0000 (+0000) Subject: Added Alt-w bindings X-Git-Tag: v1.5.2a2~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=964fbbbc61afd04a90bd1a48b4a984943a128051;p=python Added Alt-w bindings --- 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 #