Contextual menu from macOS dock icon

19 views
Skip to first unread message

Mat Kelly

unread,
May 21, 2019, 1:02:31 PM5/21/19
to wxPython-users
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

Robin Dunn

unread,
May 21, 2019, 2:14:52 PM5/21/19
to wxPython-users
Yes. Read through the demo application to see how it is done there. Look at the DemoTaskbarIcon class.

--
Robin


Reply all
Reply to author
Forward
0 new messages