コード例 #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()
コード例 #2
0
ファイル: osx.py プロジェクト: asifurrouf/pyzen
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)
コード例 #3
0
ファイル: osx.py プロジェクト: singingwolfboy/pyzen
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)
コード例 #4
0
ファイル: linux.py プロジェクト: asifurrouf/pyzen
 def notify(self, failure, title, msg, icon):
     if self.has_notify:
         n = pynotify.Notification(title, msg, 'file://'+img_path(icon+'.png'))
         n.show()