mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 04:53:31 +00:00
add, remove now accept iterables
update README patch bump
This commit is contained in:
16
README.md
16
README.md
@@ -316,8 +316,6 @@ Use the event class to toggle updates as necessary.
|
||||
The following properties are available:
|
||||
|
||||
- `pdirty`: boolean
|
||||
- `mdirty`: boolean
|
||||
- `midi`: boolean
|
||||
- `ldirty`: boolean
|
||||
|
||||
example:
|
||||
@@ -326,6 +324,20 @@ example:
|
||||
vban.event.ldirty = True
|
||||
|
||||
vban.event.pdirty = False
|
||||
```
|
||||
|
||||
Or add, remove a list of events.
|
||||
|
||||
The following methods are available:
|
||||
|
||||
- `add()`
|
||||
- `remove()`
|
||||
- `get()`
|
||||
|
||||
example:
|
||||
|
||||
```python
|
||||
vban.event.remove(["pdirty", "ldirty"])
|
||||
|
||||
# get a list of currently subscribed
|
||||
print(vban.event.get())
|
||||
|
||||
Reference in New Issue
Block a user