diff options
author | Josh Blum | 2009-08-28 18:15:49 -0700 |
---|---|---|
committer | Josh Blum | 2009-08-28 18:15:49 -0700 |
commit | cadc9548afb7b4a385cea51f48745f0a1c702607 (patch) | |
tree | d5f14ba1cf7f680ce81f28a569ba6eb7ec1c6ca6 /gr-wxgui/src/python/fft_window.py | |
parent | 36d1520f0ac73b64bd0541b422552a6d419c7ffd (diff) | |
download | gnuradio-cadc9548afb7b4a385cea51f48745f0a1c702607.tar.gz gnuradio-cadc9548afb7b4a385cea51f48745f0a1c702607.tar.bz2 gnuradio-cadc9548afb7b4a385cea51f48745f0a1c702607.zip |
Recursive resolution of virtual sources.
Flow graph generation code working.
Also, mod to fft window to use clean/nice Db/div.
Diffstat (limited to 'gr-wxgui/src/python/fft_window.py')
-rw-r--r-- | gr-wxgui/src/python/fft_window.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-wxgui/src/python/fft_window.py b/gr-wxgui/src/python/fft_window.py index 0529e6a5d..926812d8c 100644 --- a/gr-wxgui/src/python/fft_window.py +++ b/gr-wxgui/src/python/fft_window.py @@ -1,5 +1,5 @@ # -# Copyright 2008 Free Software Foundation, Inc. +# Copyright 2008, 2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -156,9 +156,9 @@ class control_panel(wx.Panel): def _on_decr_ref_level(self, event): self.parent[REF_LEVEL_KEY] = self.parent[REF_LEVEL_KEY] - self.parent[Y_PER_DIV_KEY] def _on_incr_db_div(self, event): - self.parent[Y_PER_DIV_KEY] = min(DB_DIV_MAX, self.parent[Y_PER_DIV_KEY]*2) + self.parent[Y_PER_DIV_KEY] = min(DB_DIV_MAX, common.get_clean_incr(self.parent[Y_PER_DIV_KEY])) def _on_decr_db_div(self, event): - self.parent[Y_PER_DIV_KEY] = max(DB_DIV_MIN, self.parent[Y_PER_DIV_KEY]/2) + self.parent[Y_PER_DIV_KEY] = max(DB_DIV_MIN, common.get_clean_decr(self.parent[Y_PER_DIV_KEY])) ################################################## # FFT window with plotter and control panel |