diff options
author | Barry Warsaw <barry@python.org> | 1998-09-29 20:04:19 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-09-29 20:04:19 (GMT) |
commit | fda3aceb71e1b37f68b8c558c37b834b5a3c88fe (patch) | |
tree | e9070ad863487ee3871ae89a1ec8dea5bf0384c9 /Tools/pynche/Switchboard.py | |
parent | a9b45580a3153c5eb0a9f250570a700f8c9ad52b (diff) | |
download | cpython-fda3aceb71e1b37f68b8c558c37b834b5a3c88fe.zip cpython-fda3aceb71e1b37f68b8c558c37b834b5a3c88fe.tar.gz cpython-fda3aceb71e1b37f68b8c558c37b834b5a3c88fe.tar.bz2 |
Added interface to get/set colordb
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 |