Re: [Discuss-gnuradio] Catching mouse clicks in fft_sink

2008-10-23 Thread Josh Blum
For the gl fft sink, try to bind it to the self.spectrum.win.plotter plotter is a gl canvas -Josh Steve Glass wrote: Hi, I've been using the following to catch mouse clicks in the original fft_sink: self.spectrum.win.Bind(wx.EVT_LEFT_DOWN, self.spectrum_on_left_click) to invoke the foll

[Discuss-gnuradio] Catching mouse clicks in fft_sink

2008-10-23 Thread Steve Glass
Hi, I've been using the following to catch mouse clicks in the original fft_sink: self.spectrum.win.Bind(wx.EVT_LEFT_DOWN, self.spectrum_on_left_click) to invoke the following method: def spectrum_on_left_click(self, event): x, y = self.spectrum.win.GetXY(event) self.Set