summaryrefslogtreecommitdiff
path: root/mainApp.py
diff options
context:
space:
mode:
authorpravindalve2020-08-11 19:08:57 +0530
committerGitHub2020-08-11 19:08:57 +0530
commitb31cf75d9362412e755fce76f61d73eab1e7da14 (patch)
tree0ab99a88893f8b0a7c18138c0eec0c806654cf1a /mainApp.py
parentd3bed1ef7150f8e493ebaed3b841b1fe781e974d (diff)
parent4cffaf3d0d29ee1f2d31601dd1571c7de40a8c5f (diff)
downloadChemical-Simulator-GUI-b31cf75d9362412e755fce76f61d73eab1e7da14.tar.gz
Chemical-Simulator-GUI-b31cf75d9362412e755fce76f61d73eab1e7da14.tar.bz2
Chemical-Simulator-GUI-b31cf75d9362412e755fce76f61d73eab1e7da14.zip
Merge pull request #4 from pravindalve/master
Updates and Bug Fixes
Diffstat (limited to 'mainApp.py')
-rw-r--r--mainApp.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/mainApp.py b/mainApp.py
index e49d4e2..e2328dd 100644
--- a/mainApp.py
+++ b/mainApp.py
@@ -41,16 +41,13 @@ class MainApp(QMainWindow,ui):
# Loading and setting up style sheet
self.setupUi(self)
- # style = open('cyan.css','r')
- # style = style.read()
- # self.setStyleSheet(style)
# Initializing attributes
self.zoom_count = 0
self.thrd = None
# Creating instances of classes for the main app
- self.container = Container.Container(self.textBrowser, self.graphicsView)
+ self.container = Container(self.textBrowser, self.graphicsView)
self.comp = ComponentSelector(self)
# Setting up interactive canvas
@@ -227,7 +224,7 @@ class MainApp(QMainWindow,ui):
'''
def new(self):
self.undo_redo_helper()
- self.comp.tableWidget.setRowCount(0)
+ self.comp = ComponentSelector(self)
self.textBrowser.append("<span>[" + str(self.current_time()) + "] <b>New</b> flowsheet is created ... </span>")
dock_widget_lst.clear()
@@ -262,8 +259,6 @@ class MainApp(QMainWindow,ui):
self.graphicsView.setMouseTracking(True)
self.graphicsView.keyPressEvent=self.delete_call
-
-
'''
Function for undo
'''