mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
21 lines
481 B
Python
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"""
|
|
|