コード例 #1
0
ファイル: server.py プロジェクト: mandulaj/gpvdm
        def gui_sim_stop(self):
            text = self.check_warnings()
            self.progress_window.stop()
            help_window().show()
            status_icon_stop(self.cluster)

            help_window().help_set_help([
                "plot.png",
                _("<big><b>Simulation finished!</b></big><br>Click on the plot icon to plot the results"
                  )
            ])

            if len(text) != 0:
                self.dialog = sim_warnings(text)

            if self.callback_when_done != False:
                self.callback_when_done()
                self.callback_when_done = False

            if self.excel_workbook_gen_error == True:
                help_window().help_append([
                    "warning.png",
                    _("<big><b>Excel workbook error</b></big><br>I can't write new data to the file data.xlsx, I think you have are viewing it using another program.  Please close data.xlsx to enable me to write new data to it."
                      )
                ])

            self.jobs_update.emit()
            self.sim_finished.emit()
コード例 #2
0
ファイル: hpc.py プロジェクト: roderickmackenzie/gpvdm
	def callback_cluster_connect(self):
		if self.myserver.connect()==False:
			error_dlg(self,_("Can not connect to cluster."))

		self.cluster_gui_update()
		if self.myserver.cluster==True:
			status_icon_stop(True)
			self.status_window.show()
		else:
			status_icon_stop(False)
			self.status_window.hide()
コード例 #3
0
    def callback_cluster_connect(self):
        dialog = connect_to_cluster()
        if dialog.exec_():
            self.cluster_tab = global_object_get("cluster_tab")
            global_object_get("notebook_goto_page")(_("Terminal"))
            if self.myserver.connect() == False:
                error_dlg(self, _("Can not connect to cluster."))

            self.tb_cluster.update()
            if self.myserver.cluster == True:
                self.cluster_button.setIcon(QIcon_load("connected"))
                status_icon_stop(True)
            else:
                status_icon_stop(False)
                self.cluster_button.setIcon(QIcon_load("not_connected"))
コード例 #4
0
        def gui_sim_stop(self):
            text = self.check_warnings()
            self.progress_window.stop()
            help_window().show()
            status_icon_stop(self.cluster)

            help_window().help_set_help([
                "plot.png",
                _("<big><b>Simulation finished!</b></big><br>Click on the plot icon to plot the results"
                  )
            ])

            if len(text) != 0:
                self.dialog = sim_warnings(text)

            self.jobs_update.emit()
            self.sim_finished.emit()
コード例 #5
0
ファイル: server.py プロジェクト: roderickmackenzie/gpvdm
	def gui_sim_stop(self):
		print("here")
		text=self.check_warnings()
		self.progress_window.stop()
		help_window().show()
		status_icon_stop(self.cluster)

		help_window().help_set_help(["plot.png",_("<big><b>Simulation finished!</b></big><br>Click on the plot icon to plot the results")])

		if len(text)!=0:
			self.dialog=sim_warnings(text)

		if 	self.callback_when_done!=False:
			self.callback_when_done()
			self.callback_when_done=False
			
		self.sim_finished.emit()