def process_refresh(self, row, process):
"""
Refresh a process configuration file
"""
if process.state() == QProcess.Running:
msgbox = QMessageBox()
msgbox.setIcon(QMessageBox.Information)
msgbox.setWindowTitle('NOTICE')
msgbox.setText('%s is currently running: you need to stop it to refresh the configuration file.' % process.name)
msgbox.setStandardButtons(QMessageBox.Ok)
msgbox.exec_()
else:
process.config = process.config_path
self.paint_row(row)
评论列表
文章目录