summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/Switchboard.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-09-28 15:59:21 (GMT)
committerBarry Warsaw <barry@python.org>1998-09-28 15:59:21 (GMT)
commit987fb9225f68f14696487f514a578af5f419a096 (patch)
tree1972496bfe80a3897b8c21f4e5475d6b9c3add68 /Tools/pynche/Switchboard.py
parent26367a001ddaca576aba1a3f31a7c035c53199e8 (diff)
downloadcpython-987fb9225f68f14696487f514a578af5f419a096.zip
cpython-987fb9225f68f14696487f514a578af5f419a096.tar.gz
cpython-987fb9225f68f14696487f514a578af5f419a096.tar.bz2
Initial revision
Diffstat (limited to 'Tools/pynche/Switchboard.py')
-rw-r--r--Tools/pynche/Switchboard.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tools/pynche/Switchboard.py b/Tools/pynche/Switchboard.py
new file mode 100644
index 0000000..e70461a
--- /dev/null
+++ b/Tools/pynche/Switchboard.py
@@ -0,0 +1,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)