You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
893 B
37 lines
893 B
# auto-generated by grc.converter |
|
|
|
id: multirds_variable_setter |
|
label: variable_setter |
|
category: '[multirds]' |
|
|
|
parameters: |
|
- id: varname |
|
label: varname |
|
dtype: raw |
|
- id: is_pair |
|
label: Pair Mode |
|
dtype: enum |
|
default: 'False' |
|
options: ['False', 'True'] |
|
- id: msgkey |
|
label: Key |
|
dtype: string |
|
hide: ${ ('none' if is_pair == 'True' else 'all') } |
|
|
|
inputs: |
|
- domain: message |
|
id: in |
|
|
|
templates: |
|
imports: import multirds |
|
make: |- |
|
<% block = 'self.%s'%id %> |
|
<% varsetter = 'self.set_%s'%varname %> |
|
<% guiupdater = 'self._%s_win.update_gui'%varname %> |
|
multirds.variable_setter("$varname",${varsetter},${guiupdater},${is_pair},${msgkey}) |
|
|
|
documentation: |- |
|
in pair mode this block only accepts PMT pairs that have a matching CAR |
|
no pair mode: block accepts pmt symbols directly |
|
|
|
file_format: 1
|
|
|