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

Initial revision

üst 26367a00
class Switchboard:
def __init__(self, app, colordb, red, green, blue):
self.__app = app
self.__colordb = colordb
self.__red = red
self.__green = green
self.__blue = blue
self.__views = []
def add_view(self, view):
self.__views.append(view)
def update_views(self, srcview, red, green, blue):
for v in self.__views:
if v <> srcview:
v.update_yourself(red, green, blue)
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