Пример #1
0
 def _shutdown(self):
     self.actionShutdown.setEnabled(False)
     BootstrapServer.shutdown(self._shutdownDone, Atom("false"))
Пример #2
0
 def _setGuiNode(self):
     BootstrapServer.setGuiNode(self._setGuiNodeDone, OTPApplication.nodeName())
Пример #3
0
 def _quit(self):
     BootstrapServer.shutdown(lambda _: OTPApplication.quit(), Atom("true"))
Пример #4
0
 def _bootstrap(self):
     self.actionNew.setEnabled(False)
     self.actionBootstrap.setEnabled(False)
     BootstrapServer.bootstrap(self._bootstrapDone, *self.__bootstrapArgs)
Пример #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()
Пример #6
0
 def _config(self):
     self.setEnabled(False)
     BootstrapServer.readConfigFiles(self._configDone,
                                     self.teamsFileChooser.fileName(),
                                     self.trackFileChooser.fileName(),
                                     self.weatherFileChooser.fileName())