openCom-Companion/sbapp/plyer/platforms/win/notification.py

25 lines
499 B
Python
Raw Permalink Normal View History

2022-09-16 18:07:57 +02:00
'''
Module of Windows API for plyer.notification.
'''
from threading import Thread as thread
from plyer.facades import Notification
from plyer.platforms.win.libs.balloontip import balloon_tip
class WindowsNotification(Notification):
'''
Implementation of Windows notification/balloon API.
'''
def _notify(self, **kwargs):
thread(target=balloon_tip, kwargs=kwargs).start()
def instance():
'''
Instance for facade proxy.
'''
return WindowsNotification()