mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-06 23:53:31 +00:00
add property setters in event class
use event property setters in examples update README patch bump
This commit is contained in:
@@ -8,8 +8,8 @@ class Observer:
|
||||
self.vban = vban
|
||||
# register your app as event observer
|
||||
self.vban.subject.add(self)
|
||||
# add level updates, since they are disabled by default.
|
||||
self.vban.event.add("ldirty")
|
||||
# enable level updates, since they are disabled by default.
|
||||
self.vban.event.ldirty = True
|
||||
|
||||
# define an 'on_update' callback function to receive event updates
|
||||
def on_update(self, subject):
|
||||
|
||||
Reference in New Issue
Block a user