示例#1
0
 def unload(self):
     for (signal, handlers) in self.__registered_signals.items():
         for handler in handlers:
             signals.disconnect_signal(signal, handler)
示例#2
0
 def disconnect_signal(self, signal, func):
     #		self.emit("signal_disconnect", signal, func)
     self.__unregister_signal(signal, func)
     return signals.disconnect_signal(signal, func)
示例#3
0
文件: sushi.py 项目: sushi-irc/nigiri
 def unload(self):
     for (signal, handlers) in self.__registered_signals.items():
         for handler in handlers:
             signals.disconnect_signal(signal, handler)
示例#4
0
文件: sushi.py 项目: sushi-irc/nigiri
 def disconnect_signal(self, signal, func):
     # 		self.emit("signal_disconnect", signal, func)
     self.__unregister_signal(signal, func)
     return signals.disconnect_signal(signal, func)
示例#5
0
 def accepted_cb(time, id, *x):
     if id == int(argv[2]):
         print_notification(_("DCC action with id %(id)d accepted.") % {"id": id})
         signals.disconnect_signal("dcc_send", accepted_cb)
示例#6
0
 def accepted_cb(time, id, *x):
     if id == int(argv[2]):
         print_notification(
             _("DCC action with id %(id)d accepted.") % {"id": id})
         signals.disconnect_signal("dcc_send", accepted_cb)