Changeset 6832
- Timestamp:
- 11/08/07 00:03:45
- Files:
-
- gnuradio/trunk/gr-utils/src/python/usrp_fft.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/trunk/gr-utils/src/python/usrp_fft.py
r6829 r6832 110 110 111 111 self._build_gui(vbox) 112 112 self._setup_events() 113 113 114 # set initial values 114 115 … … 255 256 return ok 256 257 258 def _setup_events(self): 259 if not self.options.waterfall and not self.options.oscilloscope: 260 self.scope.win.Bind(wx.EVT_LEFT_DCLICK, self.evt_left_dclick) 261 262 def evt_left_dclick(self, event): 263 (ux, uy) = self.scope.win.GetXY(event) 264 target_freq = ux/self.scope.win._scale_factor 265 self.set_freq(target_freq) 266 257 267 def main (): 258 268 app = stdgui2.stdapp(app_top_block, "USRP FFT", nstatus=1)
