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)
def showLobbyMenu(self): LOG_DEBUG('onEscape - firing "showLobbyMenu" event') self.fireEvent(events.ShowViewEvent(events.ShowViewEvent.SHOW_LOBBY_MENU), scope=EVENT_BUS_SCOPE.LOBBY)