Пример #1
0
 def onEscape(self):
     dialogsContainer = self.app.containerManager.getContainer(
         VIEW_TYPE.DIALOG)
     if not dialogsContainer.getView(
             criteria={POP_UP_CRITERIA.VIEW_ALIAS: VIEW_ALIAS.LOBBY_MENU}):
         self.fireEvent(events.ShowViewEvent(
             events.ShowViewEvent.SHOW_LOBBY_MENU),
                        scope=EVENT_BUS_SCOPE.LOBBY)
Пример #2
0
 def showLobbyMenu(self):
     LOG_DEBUG('onEscape - firing "showLobbyMenu" event')
     self.fireEvent(events.ShowViewEvent(events.ShowViewEvent.SHOW_LOBBY_MENU), scope=EVENT_BUS_SCOPE.LOBBY)