def notify(self, failure, title, msg, icon): if self.has_notify: n = pynotify.Notification(title, msg, 'file://' + img_path(icon + '.png')) n.show()
def notify(type, title, msg, img='logo.png'): script= """ tell application "GrowlHelperApp" notify with name "%s" title "%s" description "%s" application name "ZenTest" image from location "file://%s" end tell"""%(type, title, msg, img_path(img)) run_script(script)
def notify(type, title, msg, img='logo.png'): script = """ tell application "GrowlHelperApp" notify with name "%s" title "%s" description "%s" application name "ZenTest" image from location "file://%s" end tell""" % (type, title, msg, img_path(img)) run_script(script)
def notify(self, failure, title, msg, icon): if self.has_notify: n = pynotify.Notification(title, msg, 'file://'+img_path(icon+'.png')) n.show()