diff options
author | Scott Torborg <storborg@gmail.com> | 2018-07-16 08:06:01 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-05 16:07:47 -0800 |
commit | 7e961e4efd249e6509f2b3ec8cef592dfb1d0b87 (patch) | |
tree | 1438ff859032b31ba5e37c2910f75f9b2a92b7c5 /grc/core/generator/flow_graph.py.mako | |
parent | b0a26eeb4d8a4e0233f30e7137ec4c13391ca2b1 (diff) |
grc: Add handling of catch_exceptions top_block param
Adds an additional option to the flowgraph's "Generate Options" in GRC
called "Catch block exceptions", under the Advanced tab. This parameter
controls the catch_exceptions flag passed to top block instantiation.
Diffstat (limited to 'grc/core/generator/flow_graph.py.mako')
-rw-r--r-- | grc/core/generator/flow_graph.py.mako | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/core/generator/flow_graph.py.mako b/grc/core/generator/flow_graph.py.mako index 3fb540d8d1..7e731d1a9d 100644 --- a/grc/core/generator/flow_graph.py.mako +++ b/grc/core/generator/flow_graph.py.mako @@ -58,7 +58,7 @@ from gnuradio import qtgui class ${class_name}(gr.top_block, Qt.QWidget): def __init__(${param_str}): - gr.top_block.__init__(self, "${title}") + gr.top_block.__init__(self, "${title}", catch_exceptions=${catch_exceptions}) Qt.QWidget.__init__(self) self.setWindowTitle("${title}") qtgui.util.check_set_qss() @@ -91,7 +91,7 @@ class ${class_name}(gr.top_block, Qt.QWidget): class ${class_name}(gr.top_block): def __init__(self, doc): - gr.top_block.__init__(self, "${title}") + gr.top_block.__init__(self, "${title}", catch_exceptions=${catch_exceptions}) self.doc = doc self.plot_lst = [] self.widget_lst = [] @@ -100,7 +100,7 @@ class ${class_name}(gr.top_block): class ${class_name}(gr.top_block): def __init__(${param_str}): - gr.top_block.__init__(self, "${title}") + gr.top_block.__init__(self, "${title}", catch_exceptions=${catch_exceptions}) % elif generate_options.startswith('hb'): <% in_sigs = flow_graph.get_hier_block_stream_io('in') %> <% out_sigs = flow_graph.get_hier_block_stream_io('out') %> |