summaryrefslogtreecommitdiff
path: root/grc/data
diff options
context:
space:
mode:
Diffstat (limited to 'grc/data')
-rw-r--r--grc/data/platforms/python/blocks/blks2_selector.xml4
-rw-r--r--grc/data/platforms/python/blocks/variable_slider.xml11
2 files changed, 12 insertions, 3 deletions
diff --git a/grc/data/platforms/python/blocks/blks2_selector.xml b/grc/data/platforms/python/blocks/blks2_selector.xml
index 457f8695e..2d89df186 100644
--- a/grc/data/platforms/python/blocks/blks2_selector.xml
+++ b/grc/data/platforms/python/blocks/blks2_selector.xml
@@ -16,8 +16,8 @@
input_index=$input_index,
output_index=$output_index,
)</make>
- <callback>set_input_index($input_index)</callback>
- <callback>set_output_index($output_index)</callback>
+ <callback>set_input_index(int($input_index))</callback>
+ <callback>set_output_index(int($output_index))</callback>
<param>
<name>Type</name>
<key>type</key>
diff --git a/grc/data/platforms/python/blocks/variable_slider.xml b/grc/data/platforms/python/blocks/variable_slider.xml
index 2f6374b9a..27ac7ea5e 100644
--- a/grc/data/platforms/python/blocks/variable_slider.xml
+++ b/grc/data/platforms/python/blocks/variable_slider.xml
@@ -20,6 +20,7 @@ _$(id)_control = grc_wxgui.slider_$(slider_type)_control(
min=$min,
max=$max,
num_steps=$num_steps,
+ slider_length=$slider_length,
)
#set $grid_pos = $grid_pos.eval
#if not grid_pos
@@ -56,8 +57,16 @@ self.GridAdd(_$(id)_control, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos
<key>num_steps</key>
<value>100</value>
<type>int</type>
+ <hide>part</hide>
</param>
- <param>
+ <param>
+ <name>Slider Length (px)</name>
+ <key>slider_length</key>
+ <value>200</value>
+ <type>int</type>
+ <hide>part</hide>
+ </param>
+ <param>
<name>Slider Type</name>
<key>slider_type</key>
<value>horizontal</value>