How can I can a function and create a function for the icon context menu? I want to make the iconic Open New Window
function pop-up when you right click on the icon menu in the taskbar/dock. See this question for more info on this kind of question.
Places I have looked but found nothing:
- https://www.tcl.tk/man/tcl8.5/TkCmd/tk_mac.html#M15
- https://pyinstaller.org/en/stable/feature-notes.html#open-event-handling-in-a-tkinter-based-gui-application
CodePudding user response:
While there are a tiny subset of apple events that you can benefit from the DockMenu is not accessible directly via tkinter. Turns out mac is not really open for modifications and even smaller tasks can be hard. You could consider to use a system tray icon instead.