Search code examples
pythontkintertk-toolkittaskbardock

Open new window - tkinter/tk taskbar/dock


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:


Solution

  • 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.