summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/Switchboard.py
blob: 37b78516bd1fcea369207aa62ddb56a6f60a38d5 (plain)
1
2
3
4
5
6
7
8
9
10
class Switchboard:
    def __init__(self):
        self.__views = []

    def add_view(self, view):
        self.__views.append(view)

    def update_views(self, red, green, blue):
        for v in self.__views:
            v.update_yourself(red, green, blue)