diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-11-12 21:56:06 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-11-12 21:56:06 -0500 |
commit | 0613db37aa3d87eb3cce2841fa210abc6b7f9c22 (patch) | |
tree | 305ea14c939e945017bf9bc9510a44246b301076 /gr-qtgui/examples/pyqt_time_c.py | |
parent | bbbbf8b042c3443415ae766bf7b6a26134c0119d (diff) |
qtgui: Fixed some build issues and made sure all qtgui examples work.
analog: also fixed having a default arg for noise_source seed in Python.
Diffstat (limited to 'gr-qtgui/examples/pyqt_time_c.py')
-rwxr-xr-x | gr-qtgui/examples/pyqt_time_c.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gr-qtgui/examples/pyqt_time_c.py b/gr-qtgui/examples/pyqt_time_c.py index ba5980a050..6eb97fa9eb 100755 --- a/gr-qtgui/examples/pyqt_time_c.py +++ b/gr-qtgui/examples/pyqt_time_c.py @@ -20,7 +20,7 @@ # Boston, MA 02110-1301, USA. # -from gnuradio import gr, filter +from gnuradio import gr import sys try: @@ -37,6 +37,12 @@ except ImportError: sys.stderr.write("Error: Program requires gr-analog.\n") sys.exit(1) +try: + from gnuradio import channels +except ImportError: + sys.stderr.write("Error: Program requires gr-channels.\n") + sys.exit(1) + class dialog_box(QtGui.QWidget): def __init__(self, display, control): QtGui.QWidget.__init__(self, None) @@ -152,7 +158,7 @@ class my_top_block(gr.top_block): src1 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f1, 0.1, 0) src2 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0) src = gr.add_cc() - channel = filter.channel_model(0.01) + channel = channels.channel_model(0.01) thr = gr.throttle(gr.sizeof_gr_complex, 100*npts) self.snk1 = qtgui.time_sink_c(npts, Rs, "Complex Time Example", 1) |