summaryrefslogtreecommitdiffstats
path: root/Tools/pynche
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-05 21:15:08 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-05 21:15:08 (GMT)
commit964fbbbc61afd04a90bd1a48b4a984943a128051 (patch)
treec405be0eb0bc22a0b2422ee9d9e0080d7a78c43f /Tools/pynche
parent9044b8e5e3b367824445842d8227728387f29255 (diff)
downloadcpython-964fbbbc61afd04a90bd1a48b4a984943a128051.zip
cpython-964fbbbc61afd04a90bd1a48b4a984943a128051.tar.gz
cpython-964fbbbc61afd04a90bd1a48b4a984943a128051.tar.bz2
Added Alt-w bindings
Diffstat (limited to 'Tools/pynche')
-rw-r--r--Tools/pynche/ListViewer.py3
-rw-r--r--Tools/pynche/TextViewer.py2
2 files changed, 5 insertions, 0 deletions
diff --git a/Tools/pynche/ListViewer.py b/Tools/pynche/ListViewer.py
index d8ab85f..45a3ac5 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('<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
#
diff --git a/Tools/pynche/TextViewer.py b/Tools/pynche/TextViewer.py
index 9e77a02..0479d8c 100644
--- a/Tools/pynche/TextViewer.py
+++ b/Tools/pynche/TextViewer.py
@@ -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
#