diff options
Diffstat (limited to 'python/examples/helloglobalarea.py')
| -rw-r--r-- | python/examples/helloglobalarea.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/examples/helloglobalarea.py b/python/examples/helloglobalarea.py index d4b1b5ed..b0ac8ede 100644 --- a/python/examples/helloglobalarea.py +++ b/python/examples/helloglobalarea.py @@ -29,6 +29,7 @@ from PySide6.QtGui import QImage, QPixmap, QPainter, QFont, QColor instance_id = 0 + # 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): @@ -77,6 +78,7 @@ class HelloGlobalAreaWidget(GlobalAreaWidget): def contextMenuEvent(self, event): self.m_contextMenuManager.show(self.m_menu, self.actionHandler) + # Register the global area widget constructor with Binary Ninja. This will create a new # global area widget for each window. The callback function receives a `UIContext` object # for identifying the window. |
