summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrenda-br2023-02-08 16:29:08 +0530
committerbrenda-br2023-02-08 16:29:08 +0530
commit733286b141b5ce14d84991b7404f1de945664b8e (patch)
tree840b8535631b7863c10d05642e084b3859bc4a66
parent99c27ad53f5dd7327b9e9b2f4d2e48d1238122bf (diff)
downloadChemical-Simulator-GUI-733286b141b5ce14d84991b7404f1de945664b8e.tar.gz
Chemical-Simulator-GUI-733286b141b5ce14d84991b7404f1de945664b8e.tar.bz2
Chemical-Simulator-GUI-733286b141b5ce14d84991b7404f1de945664b8e.zip
Fix #51 Loading cursor when simulating
-rw-r--r--Container.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Container.py b/Container.py
index fd353dc..39ea6ad 100644
--- a/Container.py
+++ b/Container.py
@@ -144,18 +144,15 @@ class Container():
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)
+ QApplication.instance().setOverrideCursor(QCursor(Qt.WaitCursor))
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)
+ QApplication.instance().restoreOverrideCursor()
+ QApplication.instance().setOverrideCursor(QCursor(Qt.ArrowCursor))
if(len(self.result)== 4):
#self.msg_browser()