discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] getting mouse position


From: cswiger
Subject: [Discuss-gnuradio] getting mouse position
Date: Mon, 1 Aug 2005 17:25:03 -0400 (EDT)

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






reply via email to

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