Esempio n. 1
0
 def _onEntityCheckoutEnqueued(self, cancelCallback):
     g_eventBus.addListener(BootcampEvent.QUEUE_DIALOG_CANCEL,
                            self._onEntityCheckoutCanceled,
                            EVENT_BUS_SCOPE.LOBBY)
     g_eventBus.handleEvent(BootcampEvent(BootcampEvent.QUEUE_DIALOG_SHOW),
                            EVENT_BUS_SCOPE.LOBBY)
     self._entityEnqueueCancelCallback = cancelCallback
Esempio n. 2
0
 def cancel(self):
     g_eventBus.handleEvent(
         BootcampEvent(BootcampEvent.QUEUE_DIALOG_CANCEL),
         EVENT_BUS_SCOPE.LOBBY)
     self.destroy()