From 7d7e0fcd27812a42286ba736ed6d5217d87080a5 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 12 Feb 2024 14:54:00 -0500 Subject: Add new sidebar APIs to the sidebar example --- python/examples/helloglobalarea.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/examples/helloglobalarea.py') diff --git a/python/examples/helloglobalarea.py b/python/examples/helloglobalarea.py index ca288525..1b7332fc 100644 --- a/python/examples/helloglobalarea.py +++ b/python/examples/helloglobalarea.py @@ -30,6 +30,12 @@ from PySide6.QtGui import QImage, QPixmap, QPainter, QFont, QColor instance_id = 0 +# In Binary Ninja 4.0, global area widgets have been moved to the more flexible sidebar system. +# Plugins should use SidebarWidget instead of GlobalAreaWidget. To provide the same functionality, +# return `SidebarWidgetLocation.LeftBottom` from `SidebarWidgetType.defaultLocation` and return +# `SidebarWidgetContextSensitivity.GlobalSidebarContext` from `SidebarWidgetType.contextSensitivity`. +# See `hellosidebar.py` for an example of how to create a `SidebarWidget`. + # Global area widgets must derive from GlobalAreaWidget, not QWidget. GlobalAreaWidget is a QWidget but # provides callbacks for global area events, and must be created with a title. class HelloGlobalAreaWidget(GlobalAreaWidget): -- cgit v1.3.1