示例#1
0
 def enable(self):
     CustomNotifications.enable(self)
     self.register_custom_blink_notification(
         "TorrentFinishedEvent", self._on_torrent_finished_event_blink)
     self.register_custom_sound_notification(
         "TorrentFinishedEvent", self._on_torrent_finished_event_sound)
     self.register_custom_popup_notification(
         "TorrentFinishedEvent", self._on_torrent_finished_event_popup)
示例#2
0
文件: gtkui.py 项目: s0undt3ch/Deluge
 def enable(self):
     CustomNotifications.enable(self)
     self.register_custom_blink_notification(
         "TorrentFinishedEvent", self._on_torrent_finished_event_blink
     )
     self.register_custom_sound_notification(
         "TorrentFinishedEvent", self._on_torrent_finished_event_sound
     )
     self.register_custom_popup_notification(
         "TorrentFinishedEvent", self._on_torrent_finished_event_popup
     )
示例#3
0
 def disable(self):
     self.deregister_custom_email_notification('TorrentFinishedEvent')
     CustomNotifications.disable(self)
示例#4
0
 def enable(self):
     CustomNotifications.enable(self)
     self.register_custom_email_notification(
         'TorrentFinishedEvent', self._on_torrent_finished_event)
示例#5
0
 def disable(self):
     self.deregister_custom_blink_notification("TorrentFinishedEvent")
     self.deregister_custom_sound_notification("TorrentFinishedEvent")
     self.deregister_custom_popup_notification("TorrentFinishedEvent")
     CustomNotifications.disable(self)
示例#6
0
文件: core.py 项目: Ashod/Deluge
 def disable(self):
     self.deregister_custom_email_notification('TorrentFinishedEvent')
     CustomNotifications.disable(self)
示例#7
0
文件: core.py 项目: Ashod/Deluge
 def enable(self):
     CustomNotifications.enable(self)
     self.register_custom_email_notification('TorrentFinishedEvent',
                                             self._on_torrent_finished_event)