summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-wxgui/src/python/numbersink2.py2
-rw-r--r--grc/data/platforms/python/blocks/wxgui_numbersink2.xml9
2 files changed, 3 insertions, 8 deletions
diff --git a/gr-wxgui/src/python/numbersink2.py b/gr-wxgui/src/python/numbersink2.py
index 4a182bd04..7f853e6a4 100644
--- a/gr-wxgui/src/python/numbersink2.py
+++ b/gr-wxgui/src/python/numbersink2.py
@@ -40,7 +40,6 @@ class _number_sink_base(gr.hier_block2):
self,
parent,
unit='units',
- base_value=None, #ignore (old wrapper)
minval=0,
maxval=1,
factor=1,
@@ -54,6 +53,7 @@ class _number_sink_base(gr.hier_block2):
size=number_window.DEFAULT_WIN_SIZE,
peak_hold=False,
show_gauge=True,
+ **kwargs #catchall for backwards compatibility
):
#ensure avg alpha
if avg_alpha is None: avg_alpha = 2.0/number_rate
diff --git a/grc/data/platforms/python/blocks/wxgui_numbersink2.xml b/grc/data/platforms/python/blocks/wxgui_numbersink2.xml
index af0281f6a..7cc90b697 100644
--- a/grc/data/platforms/python/blocks/wxgui_numbersink2.xml
+++ b/grc/data/platforms/python/blocks/wxgui_numbersink2.xml
@@ -11,7 +11,6 @@
<make>numbersink2.$(type.fcn)(
self.GetWin(),
unit=$units,
- base_value=$base_value,
minval=$min_value,
maxval=$max_value,
factor=$factor,
@@ -66,12 +65,6 @@ self.GridAdd(self.$(id).win, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos
<type>real</type>
</param>
<param>
- <name>Base Value</name>
- <key>base_value</key>
- <value>0.0</value>
- <type>real</type>
- </param>
- <param>
<name>Min Value</name>
<key>min_value</key>
<value>-100</value>
@@ -172,5 +165,7 @@ self.GridAdd(self.$(id).win, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos
Set Average Alpha to 0 for automatic setting.
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
+
+Incoming numbers are multiplied by the factor, and then added-to by the reference level.
</doc>
</block>