diff options
author | Marcus D. Leech <mleech@ripnet.com> | 2013-06-13 20:04:57 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-06-13 20:04:57 -0700 |
commit | d51eab54adbd5a1b065a131e926b5df8082c67c0 (patch) | |
tree | 4e36bdbea7d72c46494084c54aa504f124c53302 | |
parent | dbcba6e5ae0b74106b2cee4e556d8e0d8711318a (diff) |
wxgui: fix exception in callback before label set
-rw-r--r-- | gr-wxgui/src/python/plotter/grid_plotter_base.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-wxgui/src/python/plotter/grid_plotter_base.py b/gr-wxgui/src/python/plotter/grid_plotter_base.py index f1bc8f546d..c6cb611c44 100644 --- a/gr-wxgui/src/python/plotter/grid_plotter_base.py +++ b/gr-wxgui/src/python/plotter/grid_plotter_base.py @@ -87,7 +87,10 @@ class grid_plotter_base(plotter_base): self.unlock() def call_freq_callback(self, coor): - x, y = self._point_label_coordinate + try: + x, y = self._point_label_coordinate + except: + return if x < self.padding_left or x > self.width-self.padding_right: return if y < self.padding_top or y > self.height-self.padding_bottom: return #scale to window bounds |