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
def cleanup(self): popups = tuple(self._notify_stack) self._notify_stack = [] for x in popups: x.hide_notification() NotifierBase.cleanup(self)
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)
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 = {}
def cleanup(self): NotifierBase.cleanup(self) self.notification_center.removeAllDeliveredNotifications()