Beispiel #1
0
 def __init__(self, closed_cb=None, action_cb=None):
     NotifierBase.__init__(self, closed_cb, action_cb)
     self.notifications = {}
     self.notification_center = NSUserNotificationCenter.defaultUserNotificationCenter(
     )
     assert self.notification_center
Beispiel #2
0
 def cleanup(self):
     popups = tuple(self._notify_stack)
     self._notify_stack = []
     for x in popups:
         x.hide_notification()
     NotifierBase.cleanup(self)
Beispiel #3
0
 def cleanup(self):
     nids = list(self.actual_notification_id.items())
     self.actual_notification_id = {}
     for nid, actual_id in nids:
         self.do_close(nid, actual_id)
     NotifierBase.cleanup(self)
Beispiel #4
0
 def __init__(self, *args):
     NotifierBase.__init__(self, *args)
     self.handles_actions = GTK_Notifier is not None
     self.gtk_notifier = None
     self.gtk_notifications = set()
     self.notification_handles = {}
Beispiel #5
0
 def cleanup(self):
     NotifierBase.cleanup(self)
     self.notification_center.removeAllDeliveredNotifications()