diff options
author | Marcus Leech <mleech@ripnet.com> | 2013-03-19 14:29:17 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-03-19 14:29:17 -0400 |
commit | 50d9b3282ae65b7cf6bf007ab8f32b4ae7cc3ed1 (patch) | |
tree | 38b46f5740d84ce75156c0d1af47b80917d1a6de | |
parent | f1dbf5102962f103a87e07fa61e0f7c6eaa00943 (diff) |
wxgui: make dummy set_callback stub in nongl sinks.
Doesn't work, but also doesn't break the code.
-rw-r--r-- | gr-wxgui/src/python/fftsink_nongl.py | 4 | ||||
-rw-r--r-- | gr-wxgui/src/python/waterfallsink_nongl.py | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gr-wxgui/src/python/fftsink_nongl.py b/gr-wxgui/src/python/fftsink_nongl.py index c756d8a3b2..ceee011557 100644 --- a/gr-wxgui/src/python/fftsink_nongl.py +++ b/gr-wxgui/src/python/fftsink_nongl.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2003,2004,2005,2006,2007,2009,2010 Free Software Foundation, Inc. +# Copyright 2003-2007,2009,2010 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -99,6 +99,8 @@ class fft_sink_base(object): def _set_n(self): self.one_in_n.set_n(max(1, int(self.sample_rate/self.fft_size/self.fft_rate))) + def set_callback(self, callb): + return class fft_sink_f(gr.hier_block2, fft_sink_base): def __init__(self, parent, baseband_freq=0, ref_scale=2.0, diff --git a/gr-wxgui/src/python/waterfallsink_nongl.py b/gr-wxgui/src/python/waterfallsink_nongl.py index 213415c82c..bf77b4b131 100644 --- a/gr-wxgui/src/python/waterfallsink_nongl.py +++ b/gr-wxgui/src/python/waterfallsink_nongl.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2003,2004,2005,2007,2008 Free Software Foundation, Inc. +# Copyright 2003-2005,2007,2008 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -71,6 +71,9 @@ class waterfall_sink_base(object): def _set_n(self): self.one_in_n.set_n(max(1, int(self.sample_rate/self.fft_size/self.fft_rate))) + def set_callback(self, callb): + return + class waterfall_sink_f(gr.hier_block2, waterfall_sink_base): def __init__(self, parent, baseband_freq=0, y_per_div=10, ref_level=50, sample_rate=1, fft_size=512, |