projects
/
debian
/
gnuradio
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70b3569
)
Fixed slider behavior when the end of the file is reached.
author
Tom Rondeau
<trondeau@vt.edu>
Wed, 16 Sep 2009 14:17:31 +0000
(10:17 -0400)
committer
Tom Rondeau
<trondeau@vt.edu>
Wed, 16 Sep 2009 14:17:31 +0000
(10:17 -0400)
gr-utils/src/python/gr_plot_qt.py
patch
|
blob
|
history
diff --git
a/gr-utils/src/python/gr_plot_qt.py
b/gr-utils/src/python/gr_plot_qt.py
index 581dc6d332bc3462ca24745197ab476bc2a15672..f3dc472f5d4f7ed7434bf7d2e7f3f59b969c219f 100755
(executable)
--- 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.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()
self.update_time_curves()
@@
-332,10
+332,8
@@
class gr_plot_qt(QtGui.QMainWindow):
count=end-start)
if(len(iq) < (end-start)):
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
self.file_length_changed()
tstep = 1.0 / self.sample_rate