summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/Switchboard.py
blob: e70461acb6b7ce2a62b0479f2f780eb949f9ffc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)