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
def cancel(self): g_eventBus.handleEvent( BootcampEvent(BootcampEvent.QUEUE_DIALOG_CANCEL), EVENT_BUS_SCOPE.LOBBY) self.destroy()