WxPython gurus - I'm looking to get accurate readings from fftplot.
Any clue appreciated:

wxMouseEvent has a function GetPosition(). When I bind an event
like wx.EVT_LEFT_DOWN to something like self.click() which
just prints GetPosition() nothing happens.

  self.mouse = wx.MouseEvent()

  self.Bind (wx.EVT_LEFT_DOWN, self.click)

  def click(self, event):
      print mouse.GetPosition()
      print "In Click\n"

But nothing happens on left click ;)


In wxgui/fftsink.py there is

  self.Bind(wx.EVT_RIGHT_UP, self.on_right_click)

  def on_right_click(self, event)
      menu  = self.popup_menu
      (etc)

Am I missing something obvious?

--Chuck




_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to