mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Initial revision
This commit is contained in:
parent
26367a001d
commit
987fb9225f
1 changed files with 16 additions and 0 deletions
16
Tools/pynche/Switchboard.py
Normal file
16
Tools/pynche/Switchboard.py
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue