Contextual menu from macOS dock icon

Hello,
I would like to use wxPython to produce a menu when the application’s Dock icon is right-clicked in macOS.

I have scoured the web and this mailing list but have only seen mention of changing the icon, not adding a contextual menu.

Is this possible with wxPython? If so, can someone provide me a fundamental example?

Thank you,

Mat

Yes. Read through the demo application to see how it is done there. Look at the DemoTaskbarIcon class.

···

On Tuesday, May 21, 2019 at 10:02:31 AM UTC-7, Mat Kelly wrote:

Hello,
I would like to use wxPython to produce a menu when the application’s Dock icon is right-clicked in macOS.

I have scoured the web and this mailing list but have only seen mention of changing the icon, not adding a contextual menu.

Is this possible with wxPython? If so, can someone provide me a fundamental example?

Robin