mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-20 00:59:57 +00:00
Added todo (wish) list
This commit is contained in:
20
sources/contents/code/ptmnotify.py
Normal file
20
sources/contents/code/ptmnotify.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- 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"""
|
||||
|
Reference in New Issue
Block a user