diff options
author | Thaddeus Koehn <tkoehn@vt.edu> | 2015-04-03 15:32:14 -0700 |
---|---|---|
committer | Thaddeus Koehn <tkoehn@vt.edu> | 2015-04-03 15:32:14 -0700 |
commit | 5392a4a420c00adbd9a165a5e11ed72c4ba8383c (patch) | |
tree | cbe8b1c896f42eef2c74a7d996bb60a48c166130 /gr-qtgui/python/qtgui/range.py | |
parent | 5a0322bfbfa59b1009fb55de8b8085155c7b1471 (diff) |
qtqui: fixed notches on knob
Diffstat (limited to 'gr-qtgui/python/qtgui/range.py')
-rwxr-xr-x | gr-qtgui/python/qtgui/range.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-qtgui/python/qtgui/range.py b/gr-qtgui/python/qtgui/range.py index 2a3aad0744..8347963f6f 100755 --- a/gr-qtgui/python/qtgui/range.py +++ b/gr-qtgui/python/qtgui/range.py @@ -90,8 +90,8 @@ class RangeWidget(QtGui.QWidget): QtGui.QDial.__init__(self, parent) self.setRange(0, ranges.ds_steps-1) self.setSingleStep(ranges.step) + self.setNotchTarget(1) self.setNotchesVisible(True) - self.setNotchTarget(ranges.step) temp = [abs(x-ranges.default) for x in ranges.ds_vals] self.setValue(temp.index(min(temp))) self.valueChanged.connect(slot) |