notifications¶
-
rumps.
notifications
(f)¶ Decorator for registering a function to serve as a “notification center” for the application. This function will receive the data associated with an incoming macOS notification sent using
rumps.notification()
. This occurs whenever the user clicks on a notification for this application in the macOS Notification Center.@rumps.notifications def notification_center(info): if 'unix' in info: print 'i know this'