summaryrefslogtreecommitdiff
path: root/mainApp.py
diff options
context:
space:
mode:
authorlucaszhao192020-02-05 17:58:00 +0530
committerlucaszhao192020-02-05 17:58:00 +0530
commit38dbff48f57c403abdc575a9cd9d0bbf512bfef6 (patch)
tree7aed3e55ee894115fb29d823a69cdd626fd5c9f7 /mainApp.py
parent7ecaa6f103b2755dc3bb3fae10a0d7ab28162596 (diff)
downloadChemical-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.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/mainApp.py b/mainApp.py
index 79c9f67..60f2b8b 100644
--- a/mainApp.py
+++ b/mainApp.py
@@ -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)