Added Alt-w bindings

This commit is contained in:
Barry Warsaw 1998-10-05 21:15:08 +00:00
parent 9044b8e5e3
commit 964fbbbc61
2 changed files with 5 additions and 0 deletions

View 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
#

View 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
#