MacOS Menubar icon not triggering events

Hi.

I’m having difficulty with menubar item (icon) in upper right corner, when clicked it is not triggering events.
This works fine in Windows 10 when taskbar icon is clicked.

wx.adv.EVT_TASKBAR_LEFT_UP, wx.adv.EVT_TASKBAR_RIGHT_UP and ** wx.adv.EVT_TASKBAR_CLICK.
None of these are triggering. Is there some special event I should be using in MacOS (10.14)?

I’m using Python 2.7 and wxPython 4.0.6.

On OSX the TaskBarIcon is only able to show a popup menu, and you need to override the CreatePopMenu method to provide the menu to be displayed. See the demo’s Main.py module so see an example.

Thank you.
Exactly what I needed.