summaryrefslogtreecommitdiffstats
path: root/Tools/pynche
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/pynche')
-rw-r--r--Tools/pynche/Main.py15
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: