mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Added Alt-w bindings
This commit is contained in:
parent
9044b8e5e3
commit
964fbbbc61
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue