Ejemplo n.º 1
0
 def notify(self, failure, title, msg, icon):
     if self.has_notify:
         n = pynotify.Notification(title, msg,
                                   'file://' + img_path(icon + '.png'))
         n.show()
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
 def notify(self, failure, title, msg, icon):
     if self.has_notify:
         n = pynotify.Notification(title, msg, 'file://'+img_path(icon+'.png'))
         n.show()