Kaydet (Commit) 964fbbbc authored tarafından Barry Warsaw's avatar Barry Warsaw

Added Alt-w bindings

üst 9044b8e5
...@@ -25,12 +25,15 @@ class ListViewer: ...@@ -25,12 +25,15 @@ class ListViewer:
self.__sb = switchboard self.__sb = switchboard
self.__lastbox = None self.__lastbox = None
self.__dontcenter = 0 self.__dontcenter = 0
# GUI
root = self.__root = Toplevel(parent, class_='Pynche') root = self.__root = Toplevel(parent, class_='Pynche')
root.protocol('WM_DELETE_WINDOW', self.__withdraw) root.protocol('WM_DELETE_WINDOW', self.__withdraw)
root.title('Pynche %s' % __version__) root.title('Pynche %s' % __version__)
root.iconname('Pynche Color List') root.iconname('Pynche Color List')
root.bind('<Alt-q>', self.__quit) root.bind('<Alt-q>', self.__quit)
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 # create the canvas which holds everything, and its scrollbar
# #
......
...@@ -29,6 +29,8 @@ class TextViewer: ...@@ -29,6 +29,8 @@ class TextViewer:
root.iconname('Pynche Text Window') root.iconname('Pynche Text Window')
root.bind('<Alt-q>', self.__quit) root.bind('<Alt-q>', self.__quit)
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 # create the text widget
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment