diff options
author | pravindalve | 2023-01-04 21:18:02 +0530 |
---|---|---|
committer | GitHub | 2023-01-04 21:18:02 +0530 |
commit | e65657bc794c50422248d5add590c5c85b1affc5 (patch) | |
tree | 0337f9333927c5db70a3f3d1f06fec7c48f1a163 /mainApp.py | |
parent | ecf089991f8f3c15c3c99f376be3b954ec5b3545 (diff) | |
parent | 76406147fef0b5ceb2d03e023794725bca88c4ee (diff) | |
download | Chemical-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.py | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -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() |