def _shutdown(self): self.actionShutdown.setEnabled(False) BootstrapServer.shutdown(self._shutdownDone, Atom("false"))
def _setGuiNode(self): BootstrapServer.setGuiNode(self._setGuiNodeDone, OTPApplication.nodeName())
def _quit(self): BootstrapServer.shutdown(lambda _: OTPApplication.quit(), Atom("true"))
def _bootstrap(self): self.actionNew.setEnabled(False) self.actionBootstrap.setEnabled(False) BootstrapServer.bootstrap(self._bootstrapDone, *self.__bootstrapArgs)
def _startup(self): if BootstrapServer.start(): self._setGuiNode() else: QMessageBox.critical(self, "Fatal error", "Failed to start an instance of bootstrap_server.") OTPApplication.quit()
def _config(self): self.setEnabled(False) BootstrapServer.readConfigFiles(self._configDone, self.teamsFileChooser.fileName(), self.trackFileChooser.fileName(), self.weatherFileChooser.fileName())