summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-09-29 20:04:19 (GMT)
committerBarry Warsaw <barry@python.org>1998-09-29 20:04:19 (GMT)
commitfda3aceb71e1b37f68b8c558c37b834b5a3c88fe (patch)
treee9070ad863487ee3871ae89a1ec8dea5bf0384c9
parenta9b45580a3153c5eb0a9f250570a700f8c9ad52b (diff)
downloadcpython-fda3aceb71e1b37f68b8c558c37b834b5a3c88fe.zip
cpython-fda3aceb71e1b37f68b8c558c37b834b5a3c88fe.tar.gz
cpython-fda3aceb71e1b37f68b8c558c37b834b5a3c88fe.tar.bz2
Added interface to get/set colordb
-rw-r--r--Tools/pynche/Switchboard.py6
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