diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/examples/ui_notifications.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/examples/ui_notifications.py b/python/examples/ui_notifications.py index c6809a32..a6739886 100644 --- a/python/examples/ui_notifications.py +++ b/python/examples/ui_notifications.py @@ -94,6 +94,10 @@ class UINotification(UIContextNotification): print(f"py GetNameForPath {path} {name}") return False + def OnContextMenuCreated(self, context, view, menu): + # This function only works in C++: Name is an out param (cpp: &name), and not modifiable by python. + print(f"py OnContextMenuCreated {context} {view} {menu}") + # Register as a global so it doesn't get destructed notif = UINotification() |
