diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2019-08-01 16:52:26 -0400 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-06 18:01:02 -0800 |
commit | a402fc432ec2019e5bfc70c3f78beef83b450f01 (patch) | |
tree | 6bacb2b14ddc2a714d7f7ddabcdb470024fc7457 /grc/core/blocks/embedded_python.py | |
parent | abba02bd39b6f6fabb63755b4909d1d3f7d8ba4b (diff) |
grc: embedded python module show_id flag
It is necessary to have access to the show_id flag for a python module
in grc to be able to access it elsewhere. This adds the flag when the
module object is created in the block library.
Diffstat (limited to 'grc/core/blocks/embedded_python.py')
-rw-r--r-- | grc/core/blocks/embedded_python.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/grc/core/blocks/embedded_python.py b/grc/core/blocks/embedded_python.py index ea9f71abad..94b40580c9 100644 --- a/grc/core/blocks/embedded_python.py +++ b/grc/core/blocks/embedded_python.py @@ -230,12 +230,15 @@ class EPyModule(Block): to set parameters of other blocks in your flowgraph. """)} + epy_flags=Block.flags + epy_flags.set(epy_flags.SHOW_ID) + parameters_data = build_params( params_raw=[ dict(label='Code', id='source_code', dtype='_multiline_python_external', default='# this module will be imported in the into your flowgraph', hide='part') - ], have_inputs=False, have_outputs=False, flags=Block.flags, block_id=key + ], have_inputs=False, have_outputs=False, flags=epy_flags, block_id=key ) templates = MakoTemplates( |