托盘所有应用程序
AllTra的Python项目详细描述
为所有应用程序制作一个系统托盘图标。
安装
使用pip进行简单安装:
pip install alltray --user
来源:
python setup.py install
用法
$ alltray --help usage: alltray.py [-h] [--config CONFIG] [--tooltip TOOLTIP] [--icon ICON] [command] positional arguments: command To run command optional arguments: -h, --help show this help message and exit --config CONFIG command group --tooltip TOOLTIP tray tool tip --icon ICON command icon
示例:
alltray --config chinadns
打包执行或应用程序文件
对于窗口,使用cx_Freeze 对于Mac OS X,仍然有一些问题…
cx_冻结
python cx_Freeze_setup.py bdist
pyinstaller
- 从http://sourceforge.net/projects/pywin32/files/ 安装pywin32
- pip install pyinstaller
- [选项]从http://upx.sourceforge.net/安装upx
- 运行pyinstaller --clean-iApps-wheelchair.icns-w alltray.py
执行文件将在“dist”目录中找到。
重要
- 执行文件只能在ascii目录中执行。不支持其他编码目录。只是PyInstaller的错误。
- 无法在64位窗口中运行单个执行文件!缺陷!
py2exe
太老了,请忽略它。
python py2exe_setup.py py2exe
屏幕截图
- 窗口
- ubuntu