mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-12-29 13:38:38 +01:00
25 lines
511 B
Python
25 lines
511 B
Python
'''
|
|
Module of Windows API for plyer.notification.
|
|
'''
|
|
|
|
from threading import Thread as thread
|
|
|
|
from sbapp.plyer.facades import Notification
|
|
from sbapp.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()
|