Kaydet (Commit) fda3aceb authored tarafından Barry Warsaw's avatar Barry Warsaw

Added interface to get/set colordb

üst a9b45580
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment