diff options
author | brenda-br | 2023-02-07 22:42:03 +0530 |
---|---|---|
committer | brenda-br | 2023-02-07 22:42:03 +0530 |
commit | d643725ec82636f82c909d37b1517479ad572ea7 (patch) | |
tree | 2278271082b3ae905dc418a39d0eb188a14c9d78 | |
parent | 814d2a6150fe6f7e914c6c63b4e9e8a88c0cf5b2 (diff) | |
download | Chemical-Simulator-GUI-d643725ec82636f82c909d37b1517479ad572ea7.tar.gz Chemical-Simulator-GUI-d643725ec82636f82c909d37b1517479ad572ea7.tar.bz2 Chemical-Simulator-GUI-d643725ec82636f82c909d37b1517479ad572ea7.zip |
Fix #51 Change cursor when simulation
-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 |