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
4ab5d85e
Commit
4ab5d85e
authored
Oct 01, 1998
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change some init order
parent
a7ba45b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
Tools/pynche/Main.py
Tools/pynche/Main.py
+10
-5
No files found.
Tools/pynche/Main.py
View file @
4ab5d85e
...
...
@@ -38,6 +38,8 @@ import ColorDB
from
PyncheWidget
import
PyncheWidget
from
Switchboard
import
Switchboard
from
StripViewer
import
StripViewer
from
ChipViewer
import
ChipViewer
from
TypeinViewer
import
TypeinViewer
...
...
@@ -92,10 +94,6 @@ def main():
else
:
raise
IOError
(
'No color database file found'
)
# create the application window decorations
app
=
PyncheWidget
(
__version__
)
parent
=
app
.
parent
()
# get triplet for initial color
try
:
red
,
green
,
blue
=
colordb
.
find_byname
(
initialcolor
)
...
...
@@ -112,8 +110,15 @@ def main():
usage
(
1
,
'Cannot find an initial color to use'
)
# create all output widgets
s
=
Switchboard
()
s
=
Switchboard
(
colordb
)
# create the application window decorations
app
=
PyncheWidget
(
__version__
,
s
)
parent
=
app
.
parent
()
s
.
add_view
(
StripViewer
(
s
,
parent
))
s
.
add_view
(
ChipViewer
(
s
,
parent
))
s
.
add_view
(
TypeinViewer
(
s
,
parent
))
s
.
update_views
(
red
,
green
,
blue
)
try
:
...
...
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