diff options
author | lucaszhao19 | 2020-02-05 17:58:00 +0530 |
---|---|---|
committer | lucaszhao19 | 2020-02-05 17:58:00 +0530 |
commit | 38dbff48f57c403abdc575a9cd9d0bbf512bfef6 (patch) | |
tree | 7aed3e55ee894115fb29d823a69cdd626fd5c9f7 /mainApp.py | |
parent | 7ecaa6f103b2755dc3bb3fae10a0d7ab28162596 (diff) | |
download | Chemical-Simulator-GUI-38dbff48f57c403abdc575a9cd9d0bbf512bfef6.tar.gz Chemical-Simulator-GUI-38dbff48f57c403abdc575a9cd9d0bbf512bfef6.tar.bz2 Chemical-Simulator-GUI-38dbff48f57c403abdc575a9cd9d0bbf512bfef6.zip |
Input/Results DockWidgets, Newly implemented variables for MaterialStream and four UnitOps
Diffstat (limited to 'mainApp.py')
-rw-r--r-- | mainApp.py | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -15,9 +15,7 @@ import PyQt5.QtGui as QtGui import PyQt5.QtCore as QtCore import PyQt5.QtWidgets as QtWidgets from component_selector import * -from dockWidget import dockWidget from Bin_Phase_env import * -from resDockWidget import resdockWidget from UnitOperations import * from Streams import * import datetime @@ -43,9 +41,9 @@ class MainApp(QMainWindow,ui): # Loading and setting up style sheet self.setupUi(self) - style = open('cyan.css','r') - style = style.read() - self.setStyleSheet(style) + # style = open('cyan.css','r') + # style = style.read() + # self.setStyleSheet(style) # Initializing attributes self.zoomcount = 0 @@ -136,7 +134,7 @@ class MainApp(QMainWindow,ui): def BinPhaseEnv(self): #compounds = self.comp.getComp() if len(self.comp.getComp())<2: - QMessageBox.about(self, 'Important', "Please select atleast 2 Compounds first") + QMessageBox.about(self, 'Important', "Please select at least 2 Compounds first") self.comp.show() #compunds = self.comp.getComp() else: @@ -166,10 +164,6 @@ class MainApp(QMainWindow,ui): def simulate(self,mode): self.thrd = threading.Thread(target=self.Container.simulate, args=(mode,)) self.thrd.start() - self.dockWidget_2.show() - self.res = resdockWidget(self.Container) - self.addDockWidget(Qt.LeftDockWidgetArea, self.res) - self.res.show() def terminate(self): os.chdir(self.Container.flowsheet.root_dir) |