我正在使用pynotify,这是我要开始工作的代码:
#! /usr/bin/python
try:
import pynotify
if pynotify.init("Telebrama Alert"):
n = pynotify.Notification('Message','This is test message')
n.set_urgency(pynotify.URGENCY_CRITICAL)
n.show()
else:
print 'There was a problem in initializing the pynotify module'
except:
print "you don't seem to installed pynotify\n"
它在我的电脑上运行良好。但我想向另一个网络发送一些通知。我怎样才能让它工作?