예제 #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
파일: ConfigDialog.py 프로젝트: Pesa/forse
 def _config(self):
     self.setEnabled(False)
     BootstrapServer.readConfigFiles(self._configDone,
                                     self.teamsFileChooser.fileName(),
                                     self.trackFileChooser.fileName(),
                                     self.weatherFileChooser.fileName())