summaryrefslogtreecommitdiff
path: root/gr-wxgui/grc/wxgui_fftsink2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'gr-wxgui/grc/wxgui_fftsink2.xml')
-rw-r--r--gr-wxgui/grc/wxgui_fftsink2.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/gr-wxgui/grc/wxgui_fftsink2.xml b/gr-wxgui/grc/wxgui_fftsink2.xml
index ec5501838..74ee5b173 100644
--- a/gr-wxgui/grc/wxgui_fftsink2.xml
+++ b/gr-wxgui/grc/wxgui_fftsink2.xml
@@ -36,6 +36,12 @@ fftsink2.$(type.fcn)(
$(parent).Add(self.$(id).win)
#else
$(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
+#end if
+#if $freqvar() is not None
+def $(id)_callback(x, y):
+ self.set_$(freqvar)(x)
+
+self.$(id).set_callback($(id)_callback)
#end if</make>
<callback>set_baseband_freq($baseband_freq)</callback>
<callback>set_sample_rate($samp_rate)</callback>
@@ -216,6 +222,12 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
<value></value>
<type>notebook</type>
</param>
+ <param>
+ <name>Freq Set Varname</name>
+ <key>freqvar</key>
+ <value>None</value>
+ <type>raw</type>
+ </param>
<check>not $win_size or len($win_size) == 2</check>
<sink>
<name>in</name>