diff options
-rw-r--r-- | Container.py | 10 | ||||
-rw-r--r-- | icons/simulating.png | bin | 0 -> 6777 bytes |
2 files changed, 10 insertions, 0 deletions
diff --git a/Container.py b/Container.py index 6b59b37..71787e5 100644 --- a/Container.py +++ b/Container.py @@ -143,10 +143,20 @@ class Container(): self.result=self.flowsheet.result_data elif mode=='EQN': + self.graphicsView.setInteractive(False) + c_pix = QPixmap('Icons/simulating.png') + cursor_scaled_pix = c_pix.scaled(QSize(30, 30), Qt.KeepAspectRatio) + s_cursor = QCursor(cursor_scaled_pix, -1, -1) + QApplication.instance().setOverrideCursor(s_cursor) + self.msg.append("<span>["+str(self.current_time())+"] Simulating in <b>equation</b> mode ... </span>") self.flowsheet.simulate_EQN() self.result=self.flowsheet.result_data + self.graphicsView.setInteractive(True) + s_cursor = cursor = QCursor( Qt.ArrowCursor ) + QApplication.instance().setOverrideCursor(s_cursor) + if(len(self.result)== 4): #self.msg_browser() self.msg.append("<span style=\"color:green\">["+str(self.current_time())+"] Simulation <b>Successful.</b></span>") diff --git a/icons/simulating.png b/icons/simulating.png Binary files differnew file mode 100644 index 0000000..b8ff48f --- /dev/null +++ b/icons/simulating.png |