Exemplo n.º 1
0
def notify(title, text, image=None, mstime=2000):
    '''Notification that wrap title and text parameter into lang()
    '''
    if image is None:
        image = getImage('icon-default-256')
    else:
        image = getImage(image)
    return showNotification(
        title=lang(title), message=lang(text), image=image, displaytime=mstime)
Exemplo n.º 2
0
def notifyH(title, text, image=None, mstime=2000):
    """Notify for human... not using localized string :p
    """
    if image is None:
        image = getImage('icon-default-256')
    else:
        image = getImage(image)
    return showNotification(title=title, message=text, image=image,
                            displaytime=mstime)
Exemplo n.º 3
0
def notifyH(title, text, image=None, mstime=2000):
    '''Notify for human... not using localized string :p
    '''
    if image is None:
        image = getImage('icon-default-256')
    else:
        image = getImage(image)
    return showNotification(
        title=title, message=text, image=image, displaytime=mstime)