summaryrefslogtreecommitdiff
path: root/gr-wxgui/src/python/plotter/common.py
diff options
context:
space:
mode:
authorMarcus Leech2012-05-21 14:35:33 -0400
committerTom Rondeau2012-05-21 14:35:33 -0400
commited838eb9be22d769247a9c63f23423c8c2f81f72 (patch)
treee109cbd8d7ce5ea2ae3df2f6ce64256ad17aeecb /gr-wxgui/src/python/plotter/common.py
parentd4fe4377e72165d88fdf00f6c8d5a5b986b25955 (diff)
downloadgnuradio-ed838eb9be22d769247a9c63f23423c8c2f81f72.tar.gz
gnuradio-ed838eb9be22d769247a9c63f23423c8c2f81f72.tar.bz2
gnuradio-ed838eb9be22d769247a9c63f23423c8c2f81f72.zip
wxgui: allows LEFT click to set a flow-graph variable to the adjusted X value on either the FFT or waterfall display.
Diffstat (limited to 'gr-wxgui/src/python/plotter/common.py')
-rw-r--r--gr-wxgui/src/python/plotter/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-wxgui/src/python/plotter/common.py b/gr-wxgui/src/python/plotter/common.py
index 6775b7057..88215e039 100644
--- a/gr-wxgui/src/python/plotter/common.py
+++ b/gr-wxgui/src/python/plotter/common.py
@@ -103,6 +103,7 @@ class point_label_thread(threading.Thread, mutex):
self._plotter.Bind(wx.EVT_MOTION, lambda evt: self.enqueue(evt.GetPosition()))
self._plotter.Bind(wx.EVT_LEAVE_WINDOW, lambda evt: self.enqueue(None))
self._plotter.Bind(wx.EVT_RIGHT_DOWN, lambda evt: plotter.enable_point_label(not plotter.enable_point_label()))
+ self._plotter.Bind(wx.EVT_LEFT_DOWN, lambda evt: plotter.call_freq_callback(evt.GetPosition()))
#start the thread
threading.Thread.__init__(self)
self.start()