diff options
author | Barry Warsaw <barry@python.org> | 1998-10-01 16:47:06 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-10-01 16:47:06 (GMT) |
commit | 4ab5d85efa1d3f917a59059ca2ae02777bb2945d (patch) | |
tree | 8545e233889de6e039f529cfd03b2994deacdf37 /Tools/pynche/Main.py | |
parent | a7ba45b7b6e64b4183b3ee3a3848f43440615248 (diff) | |
download | cpython-4ab5d85efa1d3f917a59059ca2ae02777bb2945d.zip cpython-4ab5d85efa1d3f917a59059ca2ae02777bb2945d.tar.gz cpython-4ab5d85efa1d3f917a59059ca2ae02777bb2945d.tar.bz2 |
Change some init order
Diffstat (limited to 'Tools/pynche/Main.py')
-rw-r--r-- | Tools/pynche/Main.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Tools/pynche/Main.py b/Tools/pynche/Main.py index 7fcc877..403f8b1 100644 --- a/Tools/pynche/Main.py +++ b/Tools/pynche/Main.py @@ -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: |