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