
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" )
## 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