打开新窗口-TKINTER/TK任务栏/码头

发布于 2025-02-12 20:06:13 字数 605 浏览 1 评论 0原文

我如何才能为图标上下文菜单创建功能并创建功能?我想在右键单击任务栏/码头中的图标菜单时,让标志性打开新窗口函数弹出窗口。 有关此问题的更多信息,请参见此问题

我看过但什么也没找到的地方:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

邮友 2025-02-19 20:06:14

虽然有一小部分的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文