打开新窗口-TKINTER/TK任务栏/码头
我如何才能为图标上下文菜单创建功能并创建功能?我想在右键单击任务栏/码头中的图标菜单时,让标志性打开新窗口
函数弹出窗口。 有关此问题的更多信息,请参见此问题。
我看过但什么也没找到的地方:
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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然有一小部分的 apple events 受益于 dockmenu无法通过TKInter 直接可直接访问。事实证明,Mac并没有真正打开修改,甚至较小的任务也很难。您可以考虑使用 System Tray Icon Icon 而不是。
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.