def createNotify(self, content): """function to create notification for label""" notification = KNotification(content[0]) notification.setComponentData(KComponentData("plasma_applet_pytextmonitor")) notification.setTitle("PyTextMonitor info ::: " + content[0]); notification.setText(content[1]); notification.sendEvent();
def createNotify(self, content): """function to create notification for label""" if self.debug: qDebug("[PTM] [ptmnotify.py] [createNotify]") if self.debug: qDebug("[PTM] [ptmnotify.py] [createNotify] : Run function with content '%s'" %(content)) notification = KNotification(content[0]) notification.setComponentData(KComponentData("plasma_applet_pytextmonitor")) notification.setTitle("PyTextMonitor info ::: " + content[0]); notification.setText(content[1]); notification.sendEvent();