Skip to content

Instantly share code, notes, and snippets.

@johnpena
Created February 8, 2011 20:04
Show Gist options
  • Save johnpena/817098 to your computer and use it in GitHub Desktop.
Save johnpena/817098 to your computer and use it in GitHub Desktop.
Sends a notification to Grow using python
import Growl
def growlnotify(title, message, sticky=False):
"""
Sends a notification to Growl with title and message.
`sticky` specifies whether or not the user has to click
the message to make it go away.
TODO:
- allow specification of an icon
"""
x = Growl.GrowlNotifier("Python Script", ["Say Hello"])
x.register()
x.notify("Say Hello", title, message, sticky=sticky)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment