本文整理汇总了Python中action.Action.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Action.__init__方法的具体用法?Python Action.__init__怎么用?Python Action.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类action.Action
的用法示例。
在下文中一共展示了Action.__init__方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self, key, desc, rev_key):
Action.__init__(self, (key, desc), self, TARGET_MSG_CLASS)
self.key = key
self.desc = desc
self.rev_key = rev_key
Direction.actions.add(self)
Direction.ref_map[key] = self
示例2: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self, cb, logger):
Action.__init__(self, cb, logger)
self.stopped = False
self.bolo = {}
self.bolo_domains = set()
self.bolo_searches = []
self.bolo_lock = threading.Lock()
threading.Thread.__init__(self)
示例3: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self,action_id,ports_id,mode=1):
Action.__init__(self,action_id)
# print "creo setteraction %s" % str(ports_id)
self.inverted_ports = {}
if type(ports_id) == dict :
self.involved_ports_id = ports_id.keys()
self.inverted_ports = [ k for k,v in ports_id.items() if v ]
else:
self.involved_ports_id = ports_id
self.mode = mode
示例4: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self, action_command, bodyfilter=None, auth_sender=None,
quoted_firstline_re=None, quoted_actiontoken_re=None):
Action.__init__(self, action_command, bodyfilter)
if quoted_firstline_re is None:
quoted_firstline_re = self.DEFAULT_QUOTED_FIRSTLINE_RE
if quoted_actiontoken_re is None:
quoted_actiontoken_re = self.DEFAULT_QUOTED_ACTIONTOKEN_RE
self.quoted_firstline_re = quoted_firstline_re
self.quoted_actiontoken_re = quoted_actiontoken_re
self.auth_sender = auth_sender
示例5: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self, verb, color=0x000000):
Action.__init__(self, verb, None, TARGET_ACTION)
self.color = color
示例6: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self, name, parent, function, description='', args=None, kwargs=None):
Item.__init__(self, parent)
Action.__init__(self, name, function, description=description, args=args, kwargs=kwargs)
self.item = parent
示例7: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self, status):
Action.__init__(self)
self.status = status
示例8: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self, params_mgr, win, name, description, menuText=None, accelerator=None, iconXPM=None, help=None):
Action.__init__(self, win, name, description, menuText, accelerator, iconXPM, help=help)
self._params_mgr = params_mgr
self._dialog = None
self._cloned_params = None
self._help_window = None
示例9: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self, screenName):
Action.__init__(self)
self.screenName = screenName
示例10: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self):
Action.__init__(self, EMOTES.keys(), CLASS_BROADCAST, TARGET_GENERAL)
示例11: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self):
Action.__init__(self, "zap", CLASS_DAMAGE, TARGET_MONSTER)
self.imm_level = IMM_LEVELS["creator"]
示例12: __init__
# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
def __init__(self):
Action.__init__(self, ("reply", "r"), self, TARGET_ACTION)