From 11458f3160e9c82d3e0f48b7013d952b729ec38b Mon Sep 17 00:00:00 2001 From: Josh F Date: Wed, 6 Jul 2022 13:40:52 -0400 Subject: Memory map sidebar widget + segment/section notifications --- python/examples/notification_callbacks.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'python/examples') diff --git a/python/examples/notification_callbacks.py b/python/examples/notification_callbacks.py index 24d798de..47282884 100644 --- a/python/examples/notification_callbacks.py +++ b/python/examples/notification_callbacks.py @@ -107,5 +107,23 @@ class DemoNotification(BinaryDataNotification): def type_field_ref_changed(self, *args): log.log_info(inspect.stack()[0][3] + str(args)) + def segment_added(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def segment_updated(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def segment_removed(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def section_added(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def section_updated(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def section_removed(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + PluginCommand.register("Register Notification", "", reg_notif) -- cgit v1.3.1