Applied reverse diff for win.set_* change on ra_fftsink.py
authorJosh Blum <josh@joshknows.com>
Sun, 10 Jan 2010 19:35:03 +0000 (11:35 -0800)
committerJosh Blum <josh@joshknows.com>
Sun, 10 Jan 2010 19:35:03 +0000 (11:35 -0800)
This file, unlike the others duplicates the fft plotter.
Its use of win.set was correct, since that was an internal method.

gr-radio-astronomy/src/python/ra_fftsink.py

index 8718a8f67be663a2467b36dba115e452cc0602ab..4733027c101599751b185c48c5dae192289884b6 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 #
-# Copyright 2003,2004,2005,2007,2010 Free Software Foundation, Inc.
+# Copyright 2003,2004,2005,2007 Free Software Foundation, Inc.
 # 
 # This file is part of GNU Radio
 # 
@@ -82,7 +82,7 @@ class ra_fft_sink_base(object):
         self.peak_hold = enable
         if enable:
             self.set_average(False)
-        self.set_peak_hold(enable)
+        self.win.set_peak_hold(enable)
 
     def set_autoscale(self, auto):
         self.autoscale = auto