summaryrefslogtreecommitdiff
path: root/gr-utils/src
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2009-09-16 10:17:31 -0400
committerTom Rondeau <trondeau@vt.edu>2009-09-16 10:17:31 -0400
commitaf30f69055b08d484123b50bd07649bb34edb4d1 (patch)
tree2bd19423ef56042a3ec892b0f8169699dcd756d4 /gr-utils/src
parent70b35690d96a1af9799ddf43ab9bd69abca448a1 (diff)
Fixed slider behavior when the end of the file is reached.
Diffstat (limited to 'gr-utils/src')
-rwxr-xr-xgr-utils/src/python/gr_plot_qt.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gr-utils/src/python/gr_plot_qt.py b/gr-utils/src/python/gr_plot_qt.py
index 581dc6d332..f3dc472f5d 100755
--- a/gr-utils/src/python/gr_plot_qt.py
+++ b/gr-utils/src/python/gr_plot_qt.py
@@ -310,7 +310,7 @@ class gr_plot_qt(QtGui.QMainWindow):
self.get_psd()
self.get_specgram()
self.gui.plotHBar.setSliderPosition(0)
- self.gui.plotHBar.setMaximum(self.signal_size)
+ self.gui.plotHBar.setMaximum(self.signal_size-self.block_length)
self.update_time_curves()
@@ -332,10 +332,8 @@ class gr_plot_qt(QtGui.QMainWindow):
count=end-start)
if(len(iq) < (end-start)):
- end = len(iq)
- self.gui.filePosLengthLineEdit.setText(Qt.QString("%1").arg(end))
- self.gui.plotHBar.setMaximum(end)
- self.gui.plotHBar.setSingleStep(end)
+ end = start + len(iq)
+ self.gui.filePosLengthLineEdit.setText(Qt.QString("%1").arg(len(iq)))
self.file_length_changed()
tstep = 1.0 / self.sample_rate