Home  >  Article  >  Backend Development  >  python制作一个桌面便签软件

python制作一个桌面便签软件

WBOY
WBOYOriginal
2016-06-06 11:14:392464browse

# 2014.10.15 更新了memo.zip, 网盘的exe:修复:1.隔日启动不能正常加载json,加入:1.隐藏任务栏图标,2.通过垃圾桶进行窗口移动。
# 2014.10.8 10.36更新了memo.zip
# 2014.10.8 13.17 更新了memo.zip 在win10测试,基本没问题

运行widget.py文件。

ubuntu:

在ubuntu上,memo.desktop文件可以放在desktop文件夹中,chmod +x,自己修改文件中对应的路径(很容易的)。即可用作桌面图标
程序在ubuntu测试基本没发现什么错误
注:第一次运行,由于没有便签内容,所以有可能一下子找不到窗口在哪。(窗口一开始只有两个按钮)

windows:

1. 可以运行hotkey.pyw,这样的话,就可以 使用 快捷键'~',长按该键就可以显示,松开窗口就隐藏。也可以点击通知栏图标来显示窗口。
2. 可以运行widget.pyw,这样就不会有快捷键功能
3. 窗口的移动暂时只能依靠拖动垃圾桶图标

4. 这里有windows打包好的可执行程序:http://pan.baidu.com/s/1gdh8EtH。

另外在这里会有不断的更新:https://github.com/zjuysw/memo.git

核心代码

#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Memo
Comment=Memo Launcher
Exec=/usr/bin/env python "/home/ysw/python/pyqt/memo/widget.py"
Icon=/home/ysw/python/pyqt/memo/img/icon.png
Terminal=false
StartupNotify=true

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn