awesome-widgets/sources/contents/code/ptmnotify.py
2013-10-03 03:56:01 +04:00

21 lines
481 B
Python

# -*- coding: utf-8 -*-
from gi.repository import Notify
class PTMNotify:
def __init__(self, parent):
"""class definition"""
self.parent = parent
def exampleNotify(self):
Notify.init ("Hello world")
Hello=Notify.Notification.new ("Hello world","This is an example notification.","dialog-information")
Hello.show ()
def createNotification(self):
"""function to create notification for label"""