本文整理汇总了Python中messenger.ext.channel_num_gen.getClientID4LazyChannel函数的典型用法代码示例。如果您正苦于以下问题:Python getClientID4LazyChannel函数的具体用法?Python getClientID4LazyChannel怎么用?Python getClientID4LazyChannel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getClientID4LazyChannel函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: addSpecBattlesToCarousel
def addSpecBattlesToCarousel(self):
clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
if not clientID:
LOG_ERROR('Client ID not found', 'addSpecBattlesToCarousel')
return
currCarouselItemCtx = _defCarouselItemCtx._replace(label=LAZY_CHANNEL.SPECIAL_BATTLES, order=channel_num_gen.getOrder4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES), isNotified=True, criteria={POP_UP_CRITERIA.VIEW_ALIAS: PREBATTLE_ALIASES.BATTLE_SESSION_LIST_WINDOW_PY}, openHandler=self.loadBattleSessionList)
self._fireEvent(ChannelManagementEvent(clientID, PreBattleChannelEvent.REQUEST_TO_ADD, currCarouselItemCtx._asdict()))
开发者ID:webiumsk,项目名称:WoT,代码行数:7,代码来源:events_dispatcher.py
示例2: acceptInvite
def acceptInvite(self):
yield lambda callback: callback(None)
prbID = self._inviteInfo.getID()
invite = self.prbAutoInvites.getInvite(prbID)
postActions = []
if self.prbDispatcher.hasModalEntity():
postActions.append(actions.LeavePrbModalEntity())
finishActions = [_DisableNotify(channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES))]
if g_preDefinedHosts.isRoamingPeriphery(invite.peripheryID):
success = yield DialogsInterface.showI18nConfirmDialog('changeRoamingPeriphery')
if not success:
return
self.prbPeripheriesHandler.join(invite.peripheryID, JoinBattleSessionCtx(prbID, invite.prbType, 'prebattle/join'), postActions, finishActions)
开发者ID:webiumsk,项目名称:WOT-0.9.12,代码行数:13,代码来源:invite_windows.py
示例3: addCompaniesToCarousel
def addCompaniesToCarousel():
clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.COMPANIES)
if not clientID:
LOG_ERROR('Client ID not found', 'addCompaniesToCarousel')
return
else:
g_eventBus.handleEvent(ChannelManagementEvent(clientID, ChannelManagementEvent.REQUEST_TO_ADD, {'label': LAZY_CHANNEL.COMPANIES,
'canClose': False,
'isNotified': False,
'icon': None,
'order': channel_num_gen.getOrder4LazyChannel(LAZY_CHANNEL.COMPANIES),
'criteria': {POP_UP_CRITERIA.VIEW_ALIAS: guiFactory.getAliasByEvent(events.ShowWindowEvent.SHOW_COMPANIES_WINDOW)},
'openHandler': loadCompaniesWindow}), scope=EVENT_BUS_SCOPE.LOBBY)
return
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:14,代码来源:events_dispatcher.py
示例4: addSpecBattlesToCarousel
def addSpecBattlesToCarousel():
clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
if not clientID:
LOG_ERROR('Client ID not found', 'addSpecBattlesToCarousel')
return
else:
g_eventBus.handleEvent(ChannelManagementEvent(clientID, ChannelManagementEvent.REQUEST_TO_ADD, {'label': LAZY_CHANNEL.SPECIAL_BATTLES,
'canClose': False,
'isNotified': False,
'icon': None,
'order': channel_num_gen.getOrder4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES),
'criteria': {POP_UP_CRITERIA.VIEW_ALIAS: guiFactory.getAliasByEvent(events.ShowWindowEvent.SHOW_BATTLE_SESSION_LIST)},
'openHandler': loadBattleSessionList}), scope=EVENT_BUS_SCOPE.LOBBY)
return
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:14,代码来源:events_dispatcher.py
示例5: getClientID
def getClientID(self):
return channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
开发者ID:webiumsk,项目名称:WOT-0.9.14-CT,代码行数:2,代码来源:battlesessionlist.py
示例6: getClientID
def getClientID(self):
return channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.COMPANIES)
开发者ID:webiumsk,项目名称:WoT,代码行数:2,代码来源:companylistview.py
示例7: removeSpecBattlesFromCarousel
def removeSpecBattlesFromCarousel(self):
clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
if not clientID:
LOG_ERROR('Client ID not found', 'removeSpecBattlesFromCarousel')
return
self._fireEvent(ChannelManagementEvent(clientID, PreBattleChannelEvent.REQUEST_TO_REMOVE))
开发者ID:webiumsk,项目名称:WoT,代码行数:6,代码来源:events_dispatcher.py
示例8: rqExitFromLazyChannel
def rqExitFromLazyChannel(name):
clientID = channel_num_gen.getClientID4LazyChannel(name)
if not clientID:
LOG_ERROR('Client ID is not found', name)
else:
rqExitFromChannel(clientID)
开发者ID:kblw,项目名称:wot_client,代码行数:6,代码来源:events_dispatcher.py
示例9: rqDeactivateLazyChannel
def rqDeactivateLazyChannel(name):
clientID = channel_num_gen.getClientID4LazyChannel(name)
if not clientID:
LOG_ERROR('Client ID is not found', name)
else:
rqDeactivateChannel(clientID)
开发者ID:kblw,项目名称:wot_client,代码行数:6,代码来源:events_dispatcher.py
示例10: getClientID
def getClientID(self):
return channel_num_gen.getClientID4LazyChannel(self.proto.messages.getCompanyRoomName())
开发者ID:aevitas,项目名称:wotsdk,代码行数:2,代码来源:prb_windowscompanylistview.py
示例11: rqActivateLazyChannel
def rqActivateLazyChannel(name, component):
clientID = channel_num_gen.getClientID4LazyChannel(name)
if not clientID:
LOG_ERROR("Client ID is not found", name)
else:
rqActivateChannel(clientID, component)
开发者ID:webiumsk,项目名称:WOT-0.9.12-CT,代码行数:6,代码来源:events_dispatcher.py
示例12: removeSpecBattlesFromCarousel
def removeSpecBattlesFromCarousel():
clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
if not clientID:
LOG_ERROR('Client ID not found', 'removeSpecBattlesFromCarousel')
return
g_eventBus.handleEvent(ChannelManagementEvent(clientID, ChannelManagementEvent.REQUEST_TO_REMOVE), scope=EVENT_BUS_SCOPE.LOBBY)
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:6,代码来源:events_dispatcher.py
注:本文中的messenger.ext.channel_num_gen.getClientID4LazyChannel函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论