]> granicus.if.org Git - python/commitdiff
Added interface to get/set colordb
authorBarry Warsaw <barry@python.org>
Tue, 29 Sep 1998 20:04:19 +0000 (20:04 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 29 Sep 1998 20:04:19 +0000 (20:04 +0000)
Tools/pynche/Switchboard.py

index 37b78516bd1fcea369207aa62ddb56a6f60a38d5..02a5d636b8dbc7d07003438ed04a09b72459ed76 100644 (file)
@@ -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