commit-gnuradio
[Top][All Lists]
Advanced

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

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


From: jcorgan
Subject: [Commit-gnuradio] r8279 - gnuradio/trunk/gr-wxgui/src/python
Date: Fri, 25 Apr 2008 21:26:59 -0600 (MDT)

Author: jcorgan
Date: 2008-04-25 21:26:58 -0600 (Fri, 25 Apr 2008)
New Revision: 8279

Modified:
   gnuradio/trunk/gr-wxgui/src/python/fftsink2.py
Log:
Fix race on startup in fftsink2 (Josh Blum)

Modified: gnuradio/trunk/gr-wxgui/src/python/fftsink2.py
===================================================================
--- gnuradio/trunk/gr-wxgui/src/python/fftsink2.py      2008-04-25 02:31:49 UTC 
(rev 8278)
+++ gnuradio/trunk/gr-wxgui/src/python/fftsink2.py      2008-04-26 03:26:58 UTC 
(rev 8279)
@@ -374,7 +374,10 @@
         self.PopupMenu(menu, event.GetPosition())
 
     def evt_motion(self, event):
-        # Clip to plotted values
+        if not hasattr(self, "_points"):
+           return # Got here before first window data update
+           
+       # Clip to plotted values
         (ux, uy) = self.GetXY(event)      # Scaled position
         x_vals = numpy.array(self._points[:,0])
         if ux < x_vals[0] or ux > x_vals[-1]:





reply via email to

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