diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-01-27 22:43:28 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-01-28 00:24:06 -0500 |
| commit | 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch) | |
| tree | dace4156d03148bcaf02df138ab4e0d93e61bc6f /python/examples/notification_callbacks.py | |
| parent | 519c9db22367f2659d1a54599fab47e6313be06e (diff) | |
Format All Files
Diffstat (limited to 'python/examples/notification_callbacks.py')
| -rw-r--r-- | python/examples/notification_callbacks.py | 2 |
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) |
