summaryrefslogtreecommitdiff
path: root/mainApp.py
diff options
context:
space:
mode:
authorPriyam Nayak2021-06-22 08:41:25 +0530
committerGitHub2021-06-22 08:41:25 +0530
commitecf089991f8f3c15c3c99f376be3b954ec5b3545 (patch)
tree6de70decc9a0907b5fc8b58452c28e85a84d24db /mainApp.py
parent3f8095e27df1ea62c4356c08de09cc42ffca00ed (diff)
parent4f47bbc5cb8a325bdb31776d5c9f2963603695d4 (diff)
downloadChemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.tar.gz
Chemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.tar.bz2
Chemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.zip
Merge pull request #24 from pravindalve/master
Fixed problem of compound updating during simulation
Diffstat (limited to 'mainApp.py')
-rw-r--r--mainApp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mainApp.py b/mainApp.py
index 1d8262c..e6f782a 100644
--- a/mainApp.py
+++ b/mainApp.py
@@ -43,6 +43,7 @@ class MainApp(QMainWindow,ui):
# Creating instances of classes for the main app
self.container = Container(self.textBrowser, self.graphicsView)
self.comp = ComponentSelector(self)
+ self.comp.accepted.connect(self.update_compounds)
# Setting up interactive canvas
self.scene = self.container.graphics.get_scene()
@@ -140,6 +141,13 @@ class MainApp(QMainWindow,ui):
self.comp.show()
'''
+ Updates compounds after compound selected modified during simulation creation
+ '''
+ def update_compounds(self):
+ self.container.update_compounds()
+
+
+ '''
Returns current time in a required particular format
'''
def current_time(self):