Number Sinkwxgui_numbersink2from gnuradio.wxgui import numbersink2numbersink2.$(type.fcn)(
self.GetWin(),
unit=$units,
base_value=$base_value,
minval=$min_value,
maxval=$max_value,
factor=$factor,
decimal_places=$decimal_places,
ref_level=$ref_level,
sample_rate=$samp_rate,
number_rate=$number_rate,
average=$options.average,
avg_alpha=#if $avg_alpha.eval then $avg_alpha else 'None'#,
label=$title,
peak_hold=$options.peak_hold,
show_gauge=$show_gauge,
)
#set $grid_pos = $grid_pos.eval
#if not grid_pos
self.Add(self.$(id).win)
#else
self.GridAdd(self.$(id).win, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
#end ifTypetypecomplexenumTitletitleNumber PlotstringUnitsunitsUnitsstringSample Ratesamp_ratesamp_raterealBase Valuebase_value0.0realMin Valuemin_value-100realMax Valuemax_value100realFactorfactor1.0realDecimal Placesdecimal_places10intReference Levelref_level0realNumber Ratenumber_rate15intAverage Alphaavg_alpha0realOptionsoptionsnoneenumShow Gaugeshow_gaugeTrueenumGrid Positiongrid_posgrid_posin$type
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.