diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-11-23 10:41:37 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-11-23 10:41:37 -0800 |
commit | 2d7438adb8b724f014b4448d7734aebbc66c78a9 (patch) | |
tree | 3292c3494432e721bd4a6e8a4e6a0813ecb2b9a7 /grc/gui/ActionHandler.py | |
parent | b6cf12e6e3a60afacb32c6943015a02dd0460313 (diff) | |
parent | a00b94ec4a9949125ddb1711abf49d4d575d290d (diff) |
Merge remote-tracking branch 'skoslowski/grc_toggle_widgets'
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r-- | grc/gui/ActionHandler.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py index 87576ccae1..acb546b691 100644 --- a/grc/gui/ActionHandler.py +++ b/grc/gui/ActionHandler.py @@ -113,7 +113,8 @@ class ActionHandler: Actions.FLOW_GRAPH_OPEN, Actions.FLOW_GRAPH_SAVE_AS, Actions.FLOW_GRAPH_CLOSE, Actions.ABOUT_WINDOW_DISPLAY, Actions.FLOW_GRAPH_SCREEN_CAPTURE, Actions.HELP_WINDOW_DISPLAY, - Actions.TYPES_WINDOW_DISPLAY, + Actions.TYPES_WINDOW_DISPLAY, Actions.TOGGLE_BLOCKTREE_WIDGET, + Actions.TOGGLE_REPORT_WIDGET, ): action.set_sensitive(True) if not self.init_file_paths: self.init_file_paths = Preferences.files_open() @@ -349,6 +350,12 @@ class ActionHandler: Dialogs.TypesDialog(self.get_flow_graph().get_parent()) elif action == Actions.ERRORS_WINDOW_DISPLAY: Dialogs.ErrorsDialog(self.get_flow_graph()) + elif action == Actions.TOGGLE_REPORT_WIDGET: + widget = self.main_window.reports_scrolled_window + widget.set_visible(not widget.get_visible()) + elif action == Actions.TOGGLE_BLOCKTREE_WIDGET: + widget = self.main_window.btwin + widget.set_visible(not widget.get_visible()) ################################################## # Param Modifications ################################################## @@ -447,6 +454,7 @@ class ActionHandler: self.main_window.btwin.clear(); self.platform.load_block_tree(self.main_window.btwin); elif action == Actions.FIND_BLOCKS: + self.main_window.btwin.show() self.main_window.btwin.search_entry.show() self.main_window.set_focus(self.main_window.btwin.search_entry) elif action == Actions.OPEN_HIER: |