[Top][All Lists]

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

Re: [Discuss-gnuradio] getting mouse position

From: Chuck Swiger
Subject: Re: [Discuss-gnuradio] getting mouse position
Date: Tue, 02 Aug 2005 11:19:06 -0400

At 05:25 PM 8/1/2005 -0400, you wrote:
WxPython gurus - I'm looking to get accurate readings from fftplot.
Any clue appreciated:

Just found something about registering events that works:

  import wx.lib.evtmgr as em
  em.eventManager.Register(self.Mouse, wx.EVT_LEFT_DOWN, self.panel)
  def Mouse(self, event):
        print event.GetPosition()

will print out x,y relative to upper left of self.panel on left click on it.
Now to translate it to freq/power....


reply via email to

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