示例#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
示例#2
0
 def cleanup(self):
     popups = tuple(self._notify_stack)
     self._notify_stack = []
     for x in popups:
         x.hide_notification()
     NotifierBase.cleanup(self)
示例#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)
示例#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 = {}
示例#5
0
文件: gui.py 项目: tardyp/Xpra
 def cleanup(self):
     NotifierBase.cleanup(self)
     self.notification_center.removeAllDeliveredNotifications()