add property setters in event class

use event property setters in examples

update README

patch bump
This commit is contained in:
onyx-and-iris
2022-10-06 16:45:15 +01:00
parent 243a43ac22
commit 0c60fe3d5e
4 changed files with 32 additions and 14 deletions

View File

@@ -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):