summaryrefslogtreecommitdiff
path: root/mainApp.py
diff options
context:
space:
mode:
authorpravindalve2023-01-04 21:18:02 +0530
committerGitHub2023-01-04 21:18:02 +0530
commite65657bc794c50422248d5add590c5c85b1affc5 (patch)
tree0337f9333927c5db70a3f3d1f06fec7c48f1a163 /mainApp.py
parentecf089991f8f3c15c3c99f376be3b954ec5b3545 (diff)
parent76406147fef0b5ceb2d03e023794725bca88c4ee (diff)
downloadChemical-Simulator-GUI-e65657bc794c50422248d5add590c5c85b1affc5.tar.gz
Chemical-Simulator-GUI-e65657bc794c50422248d5add590c5c85b1affc5.tar.bz2
Chemical-Simulator-GUI-e65657bc794c50422248d5add590c5c85b1affc5.zip
Merge pull request #30 from brenda-br/b_version_1
fix 23,26,27,28,29
Diffstat (limited to 'mainApp.py')
-rw-r--r--mainApp.py24
1 files changed, 23 insertions, 1 deletions
diff --git a/mainApp.py b/mainApp.py
index e6f782a..2458ce7 100644
--- a/mainApp.py
+++ b/mainApp.py
@@ -93,7 +93,9 @@ class MainApp(QMainWindow,ui):
self.actionTerminate.triggered.connect(self.terminate)
self.actionTerminate.setShortcut('Ctrl+T')
self.actionBinaryPhaseEnvelope.triggered.connect(self.bin_phase_env)
-
+ self.actionViewMessageBrowser.triggered.connect(self.toggle_message_browser_view)
+ self.actionViewComponentSelector.triggered.connect(self.toggle_component_selector_view)
+
'''
Handles all the buttons of different components.
'''
@@ -352,6 +354,25 @@ class MainApp(QMainWindow,ui):
except Exception as e:
print(e)
+ '''
+ Function for toggling the display of Component Selector
+ '''
+ def toggle_component_selector_view(self):
+ if(self.actionViewComponentSelector.isChecked()):
+ self.dockWidget.show()
+ else:
+ self.dockWidget.hide()
+
+ '''
+ Function for toggling the display of Message Browser
+ '''
+ def toggle_message_browser_view(self):
+ if(self.actionViewMessageBrowser.isChecked()):
+ self.dockWidget_2.show()
+ else:
+ self.dockWidget_2.hide()
+
+
def main():
clean_file('Undo')
@@ -361,6 +382,7 @@ def main():
window = MainApp()
window.showMaximized()
app.exec()
+
if __name__ == '__main__':
main()