From 3ecb3a0f68559a83830f11aafab93127c504ff6b Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sat, 6 Aug 2022 10:51:35 +0100 Subject: [PATCH] fix minor errors in readme --- README.md | 12 ++++++------ __main__.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0dcb93c..69a3f54 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ class ManyThings: self.vban.strip[0].label = "podmic" self.vban.strip[0].mute = True print( - f"strip 0 ({self.vban.strip[0].label}) has been set to {self.vban.strip[0].mute}" + f"strip 0 ({self.vban.strip[0].label}) mute has been set to {self.vban.strip[0].mute}" ) def other_things(self): @@ -292,7 +292,7 @@ You may pass the following optional keyword arguments: To receive event updates you should do the following: -- register your app to receive updates using the `vm.subject.add(observer)` method, where observer is your app. +- register your app to receive updates using the `vban.subject.add(observer)` method, where observer is your app. - define an `on_update(subject)` callback function in your app. The value of subject may be checked for the type of update. See `examples/observer` for a demonstration. @@ -316,19 +316,19 @@ with vban_cmd.api('banana', **opts) as vban: ... ``` -#### `vm.event` +#### `vban.event` You may also add/remove event subscriptions as necessary with the Event class. example: ```python -vm.event.add("ldirty") +vban.event.add("ldirty") -vm.event.remove("pdirty") +vban.event.remove("pdirty") # get a list of currently subscribed -print(vm.event.get()) +print(vban.event.get()) ``` #### `vban.pdirty` diff --git a/__main__.py b/__main__.py index ba83a3b..5cb713a 100644 --- a/__main__.py +++ b/__main__.py @@ -9,7 +9,7 @@ class ManyThings: self.vban.strip[0].label = "podmic" self.vban.strip[0].mute = True print( - f"strip 0 ({self.vban.strip[0].label}) has been set to {self.vban.strip[0].mute}" + f"strip 0 ({self.vban.strip[0].label}) mute has been set to {self.vban.strip[0].mute}" ) def other_things(self):