summaryrefslogtreecommitdiff
path: root/python/examples/notification_callbacks.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/notification_callbacks.py')
-rw-r--r--python/examples/notification_callbacks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/examples/notification_callbacks.py b/python/examples/notification_callbacks.py
index 015cd458..d3cbf26b 100644
--- a/python/examples/notification_callbacks.py
+++ b/python/examples/notification_callbacks.py
@@ -27,6 +27,7 @@ def reg_notif(view):
demo_notification = DemoNotification(view)
view.register_notification(demo_notification)
+
class DemoNotification(BinaryDataNotification):
def __init__(self, view):
self.view = view
@@ -100,4 +101,5 @@ class DemoNotification(BinaryDataNotification):
def type_field_ref_changed(self, *args):
log.log_info(inspect.stack()[0][3] + str(args))
+
PluginCommand.register("Register Notification", "", reg_notif)