summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-02 16:05:48 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-02 16:05:48 (GMT)
commitbd36d6eccd5c1d79a8bc1e273124e752c218a578 (patch)
tree4d9dec53308b4d5967f5081149f41dc9ba8b6acb
parenta9053f65ded955481c641e0ce80e8a7d5154d63e (diff)
downloadcpython-bd36d6eccd5c1d79a8bc1e273124e752c218a578.zip
cpython-bd36d6eccd5c1d79a8bc1e273124e752c218a578.tar.gz
cpython-bd36d6eccd5c1d79a8bc1e273124e752c218a578.tar.bz2
Added the ListViewer
-rw-r--r--Tools/pynche/PyncheWidget.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/pynche/PyncheWidget.py b/Tools/pynche/PyncheWidget.py
index 2222c05..b367fc2 100644
--- a/Tools/pynche/PyncheWidget.py
+++ b/Tools/pynche/PyncheWidget.py
@@ -15,6 +15,7 @@ class PyncheWidget:
self.__sb = switchboard
self.__version = version
self.__textwin = None
+ self.__listwin = None
# create the first and top window
root = self.__root = Tk(className='Pynche')
root.protocol('WM_DELETE_WINDOW', self.__quit)
@@ -51,6 +52,9 @@ class PyncheWidget:
viewmenu.add_command(label='Text Window...',
command=self.__popup_text,
underline=0)
+ viewmenu.add_command(label='Color List Window...',
+ command=self.__popup_listwin,
+ underline=0)
#
# Help menu
#
@@ -98,3 +102,10 @@ email: bwarsaw@python.org''')
self.__textwin = TextViewer(self.__sb, self.__root)
self.__sb.add_view(self.__textwin)
self.__textwin.deiconify()
+
+ def __popup_listwin(self, event=None):
+ if not self.__listwin:
+ from ListViewer import ListViewer
+ self.__listwin = ListViewer(self.__sb, self.__root)
+ self.__sb.add_view(self.__listwin)
+ self.__listwin.deiconify()