Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9044b8e5
Commit
9044b8e5
authored
Oct 05, 1998
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added details window
parent
cd09867c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Tools/pynche/PyncheWidget.py
Tools/pynche/PyncheWidget.py
+11
-1
No files found.
Tools/pynche/PyncheWidget.py
View file @
9044b8e5
...
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment