 | blc2 - Python library and frontend for running theatrical lighting and SFX. Written for the English 2041F fall 2019 theatre production of "The Cenci".
git clone https://benconnors.ca/git-repos/blc2
|
Log | Files | Refs
commit 20da984d08c414f49f6a64cd3d68be68fd0246bb
parent e49202ba923b9a7f9171df1967652320222b69db
Author: Ben Connors <benconnors@outlook.com>
Date: Thu, 14 Nov 2019 14:22:45 -0500
Some bugfixes
Diffstat:
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/interface/__main__.py b/interface/__main__.py
@@ -4,8 +4,9 @@ import sys
from .interface import Interface
from .ola import OLAOutput
+from .dummy import DummyOutput
if len(sys.argv) > 2:
raise ValueError("Usage: %s [workspace file]" % sys.argv[0])
-Interface(sys.argv[1] if len(sys.argv) == 2 else None, OLAOutput()).main()
+Interface(sys.argv[1] if len(sys.argv) == 2 else None, DummyOutput()).main()
diff --git a/interface/dummy.py b/interface/dummy.py
@@ -5,13 +5,22 @@ import socket
import threading
class DummyOutput:
+ name = "Dummy"
+
def set_values(self, values):
v = {c.address[1]: v for c, v in values.items()}
with self._lock:
self.s.sendall(array.array('B', ((0 if i not in v else v[i]) for i in range(64))).tobytes())
+ @property
+ def ok(self):
+ return True
+
+ @property
+ def status(self):
+ return "Everything's good"
+
def __init__(self):
self._lock = threading.RLock()
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.connect(("", 6969))
-
diff --git a/interface/interface.py b/interface/interface.py
@@ -626,6 +626,7 @@ class Interface:
def chaser_run(self):
self.current_cv.highlight = False
+ self.renderer.clear_hold()
self.chaser_stack.append([c.selected for c in self.chaser_views])
self.handle_show(None)
self.base_run()