diff options
author | mormj <34754695+mormj@users.noreply.github.com> | 2019-11-22 14:59:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-22 14:59:30 -0500 |
commit | 1d97d92a47f309addd4837b338652c8203679d38 (patch) | |
tree | 2b13501f9bd1b88d660b6a086535cab376bfcd00 /gr-qtgui | |
parent | 9bd441ed1ed326ae46ae6e0313394d8af3f33ba2 (diff) | |
parent | ef5ca9fe51dc45c0332e41db36f822f145f6116a (diff) |
Merge pull request #2778 from dl1ksv/patch-18
Reintroduce default setting in qtgui_chooser
Diffstat (limited to 'gr-qtgui')
-rw-r--r-- | gr-qtgui/grc/qtgui_chooser.block.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-qtgui/grc/qtgui_chooser.block.yml b/gr-qtgui/grc/qtgui_chooser.block.yml index 4206d705f2..df27f02468 100644 --- a/gr-qtgui/grc/qtgui_chooser.block.yml +++ b/gr-qtgui/grc/qtgui_chooser.block.yml @@ -31,7 +31,11 @@ parameters: default: '[]' hide: ${ ('all' if int(num_opts) else 'none') } - id: value - label: Option 0 (Default) + label: Default option + dtype: ${type} + default: '0' +- id: option0 + label: Option 0 dtype: ${ type } default: '0' hide: ${ ('none' if int(num_opts) > 0 else 'all') } @@ -105,7 +109,7 @@ templates: - self._${id}_callback(${id}) make: |- <% - all_options = [ value, option1, option2, option3, option4 ][:int(num_opts)] + all_options = [ option0, option1, option2, option3, option4 ][:int(num_opts)] all_labels = [ label0, label1, label2, label3, label4 ][:int(num_opts)] %>\ # Create the options list |