From fd529dc56c696699d31c94865739bdc89fd5d4c5 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sat, 9 Jul 2022 11:08:16 +0100 Subject: [PATCH] strip switch to bus in observable example. --- examples/observer/__main__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/observer/__main__.py b/examples/observer/__main__.py index 7ffab43..09a444e 100644 --- a/examples/observer/__main__.py +++ b/examples/observer/__main__.py @@ -12,12 +12,11 @@ class Observer: print("mdirty!") if subject == "ldirty": info = ( - "levels changed:", - f"[strip 0 {self.vm.strip[0].levels.is_updated}]", - f"[strip 1 {self.vm.strip[1].levels.is_updated}]", - f"[strip 2 {self.vm.strip[2].levels.is_updated}]", - f"[strip 3 {self.vm.strip[3].levels.is_updated}]", - f"[strip 4 {self.vm.strip[4].levels.is_updated}]", + f"[{self.vm.bus[0]} {self.vm.bus[0].levels.is_updated}]", + f"[{self.vm.bus[1]} {self.vm.bus[1].levels.is_updated}]", + f"[{self.vm.bus[2]} {self.vm.bus[2].levels.is_updated}]", + f"[{self.vm.bus[3]} {self.vm.bus[3].levels.is_updated}]", + f"[{self.vm.bus[4]} {self.vm.bus[4].levels.is_updated}]", ) print(" ".join(info))