diff options
Diffstat (limited to 'Tools/pynche/Switchboard.py')
-rw-r--r-- | Tools/pynche/Switchboard.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/pynche/Switchboard.py b/Tools/pynche/Switchboard.py index 37b7851..02a5d63 100644 --- a/Tools/pynche/Switchboard.py +++ b/Tools/pynche/Switchboard.py @@ -1,6 +1,7 @@ class Switchboard: - def __init__(self): + def __init__(self, colordb): self.__views = [] + self.__colordb = colordb def add_view(self, view): self.__views.append(view) @@ -8,3 +9,6 @@ class Switchboard: def update_views(self, red, green, blue): for v in self.__views: v.update_yourself(red, green, blue) + + def colordb(self): + return self.__colordb |