本文整理汇总了Python中Event.EventHandler.EventHandler.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python EventHandler.__init__方法的具体用法?Python EventHandler.__init__怎么用?Python EventHandler.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Event.EventHandler.EventHandler
的用法示例。
在下文中一共展示了EventHandler.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Event.EventHandler import EventHandler [as 别名]
# 或者: from Event.EventHandler.EventHandler import __init__ [as 别名]
def __init__(self):
EventHandler.__init__(self)
self.attributes['signature'] = 'received_notification'
self.attributes['function'] = (lambda receiver, event :
(lambda :
receiver.sendFinal((lambda :
lib.ANSI.yellow('\n\r### {}\n\r'.format((lambda :
event.attributes['data']['message'])())))()))())
示例2: __init__
# 需要导入模块: from Event.EventHandler import EventHandler [as 别名]
# 或者: from Event.EventHandler.EventHandler import __init__ [as 别名]
def __init__(self):
EventHandler.__init__(self)
self.attributes['signature'] = 'move_actor'
self.attributes['function'] = self.moveActor
示例3: __init__
# 需要导入模块: from Event.EventHandler import EventHandler [as 别名]
# 或者: from Event.EventHandler.EventHandler import __init__ [as 别名]
def __init__(self):
EventHandler.__init__(self)
self.attributes["signature"] = "actor_observed"
self.attributes["function"] = self.actorObserved
示例4: __init__
# 需要导入模块: from Event.EventHandler import EventHandler [as 别名]
# 或者: from Event.EventHandler.EventHandler import __init__ [as 别名]
def __init__(self, adjusters):
EventHandler.__init__(self, adjusters)
self.attributes['signature'] = 'actor_attempted_item_removal'
示例5: __init__
# 需要导入模块: from Event.EventHandler import EventHandler [as 别名]
# 或者: from Event.EventHandler.EventHandler import __init__ [as 别名]
def __init__(self, adjusters):
EventHandler.__init__(self, adjusters)
self.attributes['signature'] ='broadcast_to_all_players'
示例6: __init__
# 需要导入模块: from Event.EventHandler import EventHandler [as 别名]
# 或者: from Event.EventHandler.EventHandler import __init__ [as 别名]
def __init__(self):
EventHandler.__init__(self)
self.attributes['signature'] = 'broadcast_to_all_players'
self.attributes['function'] = self.broadcastToAllPlayers
示例7: __init__
# 需要导入模块: from Event.EventHandler import EventHandler [as 别名]
# 或者: from Event.EventHandler.EventHandler import __init__ [as 别名]
def __init__(self):
EventHandler.__init__(self)
self.attributes['signature'] = 'execute_command'
self.attributes['function'] = self.executeCommand
示例8: __init__
# 需要导入模块: from Event.EventHandler import EventHandler [as 别名]
# 或者: from Event.EventHandler.EventHandler import __init__ [as 别名]
def __init__(self):
EventHandler.__init__(self)
self.attributes['signature'] = 'was_observed'
self.attributes['function'] = self.wasObserved