wxpython 系统托盘图标菜单 [英] wxpython systray icon menu

查看:44
本文介绍了wxpython 系统托盘图标菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个要在后台运行的应用程序.不需要任何用户交互,因此我希望该应用程序以无形的方式运行,以保存系统托盘图标.我希望该图标有一个菜单,可以在记事本中打开配置/帮助文件.有人可以指出我正确的方向或提供一个例子吗?

I'm designing an application that I want to run in the background. There isn't any user interaction necessary, so I want the app to run invisibly save for a systray icon. I want that icon to have a menu that just opens the config/help files in notepad. Could someone point me in the right direction or provide an example?

推荐答案

你想要 wx.TaskBarIcon:

You want the wx.TaskBarIcon:

http://docs.wxwidgets.org/stable/wx_wxtaskbaricon.html

wxPython Demo 中有示例代码,您可以查看.

The wxPython Demo has example code you can look at.

这篇关于wxpython 系统托盘图标菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆