Forum: GNU Radio Catching mouse clicks in fft_sink

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cf420f586985d85005d523b10115c8fc?d=identicon&s=25 Steve Glass (Guest)
on 2008-10-24 03:37
(Received via mailing list)
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.SetStatusText(str(x))

but since I've switched to using the new fftsink2 class no clicks get
caught
by this method. I've tried using the eventmanager too but no joy with
that
approach either. Is this simply my code or are others having problems
getting mouse click events in fftsink2?

Regards

Stevie
4252201ac30d6dd44d8090ce1070e35f?d=identicon&s=25 Josh Blum (Guest)
on 2008-10-24 04:05
(Received via mailing list)
For the gl fft sink, try to bind it to the self.spectrum.win.plotter

plotter is a gl canvas

-Josh
This topic is locked and can not be replied to.