2022-09-16 10:07:57 -06:00
|
|
|
'''
|
|
|
|
Module of Windows API for plyer.notification.
|
|
|
|
'''
|
|
|
|
|
|
|
|
from threading import Thread as thread
|
|
|
|
|
2024-06-02 10:31:58 -06:00
|
|
|
from sbapp.plyer.facades import Notification
|
|
|
|
from sbapp.plyer.platforms.win.libs.balloontip import balloon_tip
|
2022-09-16 10:07:57 -06:00
|
|
|
|
|
|
|
|
|
|
|
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()
|