Debian Codegraph @

plyer/platforms/win/notification.py

raw symbols SCIP
1 '''
2 Module of Windows API for plyer.notification.
3 '''
4
5 from threading import Thread as thread
6
7 from plyer.facades import Notification
8 from plyer.platforms.win.libs.balloontip import balloon_tip
9
10
11 class WindowsNotification(Notification):
12 '''
13 Implementation of Windows notification/balloon API.
14 '''
15
16 def _notify(self, **kwargs):
17 thread(target=balloon_tip, kwargs=kwargs).start()
18
19
20 def instance():
21 '''
22 Instance for facade proxy.
23 '''
24 return WindowsNotification()