summaryrefslogtreecommitdiffstats
path: root/Tools/pynche
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-05 21:14:46 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-05 21:14:46 (GMT)
commit9044b8e5e3b367824445842d8227728387f29255 (patch)
treead8a87f2d78a9fb1c2aedb80873d0166e162f048 /Tools/pynche
parentcd09867c576491b4fed8a3dc116ceb23005c88a0 (diff)
downloadcpython-9044b8e5e3b367824445842d8227728387f29255.zip
cpython-9044b8e5e3b367824445842d8227728387f29255.tar.gz
cpython-9044b8e5e3b367824445842d8227728387f29255.tar.bz2
Added details window
Diffstat (limited to 'Tools/pynche')
-rw-r--r--Tools/pynche/PyncheWidget.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/Tools/pynche/PyncheWidget.py b/Tools/pynche/PyncheWidget.py
index 66c219f..7c70935 100644
--- a/Tools/pynche/PyncheWidget.py
+++ b/Tools/pynche/PyncheWidget.py
@@ -19,6 +19,7 @@ class PyncheWidget:
self.__version = version
self.__textwin = None
self.__listwin = None
+ self.__detailswin = None
# create the first and top window
root = self.__root = Tk(className='Pynche')
root.protocol('WM_DELETE_WINDOW', self.__quit)
@@ -58,7 +59,9 @@ class PyncheWidget:
viewmenu.add_command(label='Color List Window...',
command=self.__popup_listwin,
underline=0)
- #
+ viewmenu.add_command(label='Details Window...',
+ command=self.__popup_details,
+ underline=0) #
# Help menu
#
helpbtn = Menubutton(menubar, text='Help',
@@ -112,3 +115,10 @@ email: bwarsaw@python.org''')
self.__listwin = ListViewer(self.__sb, self.__root)
self.__sb.add_view(self.__listwin)
self.__listwin.deiconify()
+
+ def __popup_details(self, event=None):
+ if not self.__detailswin:
+ from DetailsViewer import DetailsViewer
+ self.__detailswin = DetailsViewer(self.__sb, self.__root)
+ self.__sb.add_view(self.__detailswin)
+ self.__detailswin.deiconify()