#! -*- coding: utf-8 -*- import Growl class GrowlNotify(): def __init__(self): self.g = Growl.GrowlNotifier( applicationName='crochet',notifications=['newTwit','newReply']) self.g.register() self.img = Growl.Image.imageFromPath('reply.png') def Notify(self, title, desc, img): if( img != False ): self.g.notify(noteType='newTwit',title=title, description=desc,icon = img,sticky=False) else: self.g.notify(noteType='newTwit',title=title, description=desc,sticky=False)