summaryrefslogtreecommitdiff
path: root/mainApp.py
diff options
context:
space:
mode:
authorSaurabhAgarwala2019-12-23 18:43:41 +0530
committerSaurabhAgarwala2019-12-23 18:43:41 +0530
commite9b132bbfe89334e4656c2bb3a63693bf85c3ec5 (patch)
tree76bebe117bc7a2469c3e504470a782e14548a3f7 /mainApp.py
parent4b03a7461678d78b65bfd04452a20ffd69aed3f4 (diff)
downloadChemical-Simulator-GUI-e9b132bbfe89334e4656c2bb3a63693bf85c3ec5.tar.gz
Chemical-Simulator-GUI-e9b132bbfe89334e4656c2bb3a63693bf85c3ec5.tar.bz2
Chemical-Simulator-GUI-e9b132bbfe89334e4656c2bb3a63693bf85c3ec5.zip
Termination function implemented
Diffstat (limited to 'mainApp.py')
-rw-r--r--mainApp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mainApp.py b/mainApp.py
index be8c3de..139b23c 100644
--- a/mainApp.py
+++ b/mainApp.py
@@ -170,9 +170,9 @@ class MainApp(QMainWindow,ui):
if self.thrd:
thread_id = self.thrd.ident
print('____________________Going to terminate simulation thread with Thread ID:',thread_id,'____________________')
- # print('____________________Going to terminate the new process created for omc____________________')
- # self.Container.flowsheet.process.terminate()
- # print('____________________New process created for omc is terminated.____________________')
+ print('____________________Going to terminate the new process created for omc____________________')
+ self.Container.flowsheet.process.terminate()
+ print('____________________New process created for omc is terminated.____________________')
res = ctypes.pythonapi.PyThreadState_SetAsyncExc(thread_id, ctypes.py_object(SystemExit))
self.textBrowser.append("<span style=\"color:red\">["+str(self.currentTime())+"]<b> Terminating the simulation </b></span>")
print('____________________Simulation thread terminated____________________')