[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10705 - gnuradio/branches/developers/trondeau/qtdevel
From: |
trondeau |
Subject: |
[Commit-gnuradio] r10705 - gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python |
Date: |
Sun, 29 Mar 2009 19:24:58 -0600 (MDT) |
Author: trondeau
Date: 2009-03-29 19:24:58 -0600 (Sun, 29 Mar 2009)
New Revision: 10705
Modified:
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python/qttest_c.py
Log:
cleaning up qt sink example for cleaner interface
Modified:
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python/qttest_c.py
===================================================================
---
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python/qttest_c.py
2009-03-30 01:23:48 UTC (rev 10704)
+++
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python/qttest_c.py
2009-03-30 01:24:58 UTC (rev 10705)
@@ -17,21 +17,21 @@
src2 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f2, 0.1, 0)
src = gr.add_cc()
thr = gr.throttle(gr.sizeof_gr_complex, 20*fftsize)
- self.snk1 = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS,
-Rs/2, Rs/2)
- self.snk2 = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS,
-Rs/2, Rs/2)
+ self.snk1 = qtgui.sink_c(None, fftsize,
+ gr.firdes.WIN_BLACKMAN_hARRIS,
+ -Rs/2, Rs/2)
+ self.snk2 = qtgui.sink_c(None, fftsize,
+ gr.firdes.WIN_BLACKMAN_hARRIS,
+ -Rs/2, Rs/2)
self.connect(src1, (src,0))
self.connect(src2, (src,1))
self.connect(src, thr, self.snk1)
self.connect(src1, self.snk2)
- self.snk1.initialize()
- qapp = self.snk1.get_qapplication()
- self.snk2.initialize(qapp)
-
if __name__ == "__main__":
tb = my_top_block();
tb.start()
- tb.snk1.start_app();
+ tb.snk1.exec_();
#tb.wait();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10705 - gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python,
trondeau <=