commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r11047 - gnuradio/trunk/gr-wxgui/src/python


From: jblum
Subject: [Commit-gnuradio] r11047 - gnuradio/trunk/gr-wxgui/src/python
Date: Fri, 15 May 2009 11:48:12 -0600 (MDT)

Author: jblum
Date: 2009-05-15 11:48:12 -0600 (Fri, 15 May 2009)
New Revision: 11047

Modified:
   gnuradio/trunk/gr-wxgui/src/python/scopesink_nongl.py
Log:
Added arg to start non gl scope in xy mode.
Harmless and backwards compadible.



Modified: gnuradio/trunk/gr-wxgui/src/python/scopesink_nongl.py
===================================================================
--- gnuradio/trunk/gr-wxgui/src/python/scopesink_nongl.py       2009-05-15 
16:12:35 UTC (rev 11046)
+++ gnuradio/trunk/gr-wxgui/src/python/scopesink_nongl.py       2009-05-15 
17:48:12 UTC (rev 11047)
@@ -56,7 +56,7 @@
 class scope_sink_c(gr.hier_block2):
     def __init__(self, parent, title='', sample_rate=1,
                  size=default_scopesink_size, frame_decim=default_frame_decim,
-                 v_scale=default_v_scale, t_scale=None, num_inputs=1, 
**kwargs):
+                 v_scale=default_v_scale, t_scale=None, num_inputs=1, 
xy_mode=False, **kwargs):
 
         gr.hier_block2.__init__(self, "scope_sink_c",
                                 gr.io_signature(num_inputs, num_inputs, 
gr.sizeof_gr_complex),
@@ -72,6 +72,7 @@
         
         self.win = scope_window(win_info(msgq, sample_rate, frame_decim,
                                          v_scale, t_scale, self.guts, title), 
parent)
+        self.win.info.xy = xy_mode
         
     def set_sample_rate(self, sample_rate):
         self.guts.set_sample_rate(sample_rate)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]