]> granicus.if.org Git - python/commitdiff
Added Alt-w bindings
authorBarry Warsaw <barry@python.org>
Mon, 5 Oct 1998 21:15:08 +0000 (21:15 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 5 Oct 1998 21:15:08 +0000 (21:15 +0000)
Tools/pynche/ListViewer.py
Tools/pynche/TextViewer.py

index d8ab85f60121ee32ef7ba61de5e9023230f69365..45a3ac563ed86056f39099429cd8f531130fc9d5 100644 (file)
@@ -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('<Alt-q>', self.__quit)
         root.bind('<Alt-Q>', self.__quit)
+        root.bind('<Alt-w>', self.__withdraw)
+        root.bind('<Alt-W>', self.__withdraw)
         #
         # create the canvas which holds everything, and its scrollbar
         #
index 9e77a021d8c734895aa37b11b2424cb286ebc0dd..0479d8c8dce65210d421dcc8fc3b3a2d4691d63d 100644 (file)
@@ -29,6 +29,8 @@ class TextViewer:
         root.iconname('Pynche Text Window')
         root.bind('<Alt-q>', self.__quit)
         root.bind('<Alt-Q>', self.__quit)
+        root.bind('<Alt-w>', self.__withdraw)
+        root.bind('<Alt-W>', self.__withdraw)
         #
         # create the text widget
         #