小黑米的生活

只玩技术

python & growl on mac os

leave a comment


Mac OS的通知窗口~ 嗯… 其实就是弹窗~ 如果用来加入到项目管理, 那么将会是多么好玩的一件事情啊~

import Growl
## set up a new GrowlNotifier with our name and a list of the notifications we'll be posting

gn = Growl.GrowlNotifier( "YourAppName", ["A readable notification name", "another readable notification name"] )
## register the notifier with Growl

gn.register()
## post a notification
gn.notify( "A readable notification name", "Notification Title", "Notification body" )

原创文章,转载请注明: 转载自小黑米的生活

本文链接地址: python & growl on mac os

Written by edwardhey

四月 29th, 2011 at 4:46 下午

Posted in python,技术

Leave a Reply

无觅相关文章插件,快速提升流量