1 import pynotify,sys
2 if not pynotify.init('a'):
3     sys.exit(1) 
4 n=pynotify.Notification('title','info','file:///pathto/111.png')
5 n.show()

效果类似notify-send。

posted on 2015-11-09 16:23  perel  阅读(564)  评论(0编辑  收藏  举报