diff options
author | Tom Rondeau <trondeau@molly.home> | 2009-09-01 23:02:47 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@molly.home> | 2009-09-01 23:02:47 -0400 |
commit | e4c161f16aecd82f3cfc0a8aff4e1d16afaa2791 (patch) | |
tree | effbf17ecd69979a3c1fdaca2a043dfd353fa979 /gr-utils/src/python/gr_plot_qt.py | |
parent | 3a27d463adaf6784b9abfe1d5f5828a0429f838b (diff) |
Can now change the size of the symbols. Also fixes some layout issues.
Diffstat (limited to 'gr-utils/src/python/gr_plot_qt.py')
-rwxr-xr-x | gr-utils/src/python/gr_plot_qt.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gr-utils/src/python/gr_plot_qt.py b/gr-utils/src/python/gr_plot_qt.py index 3d77787d45..267737fd0c 100755 --- a/gr-utils/src/python/gr_plot_qt.py +++ b/gr-utils/src/python/gr_plot_qt.py @@ -259,6 +259,13 @@ class gr_plot_qt(QtGui.QMainWindow): self.change_pen_width) self.gui.lineWidthSpinBox.setRange(1, 10) + # When style size spin box changes, update the pen size + self.connect(self.gui.styleSizeSpinBox, + Qt.SIGNAL("valueChanged(int)"), + self.change_style_size) + self.gui.styleSizeSpinBox.setRange(1, 20) + self.gui.styleSizeSpinBox.setValue(5) + # Connect a signal for when the sample rate changes self.set_sample_rate(self.sample_rate) @@ -586,6 +593,13 @@ class gr_plot_qt(QtGui.QMainWindow): colormode = str(self.gui.colorComboBox.currentText().toAscii()) color_func = self.color_modes[colormode]() + def change_style_size(self, size): + self.rsym.setSize(size) + self.isym.setSize(size) + self.rcurve.setSymbol(self.rsym) + self.icurve.setSymbol(self.isym) + self.gui.timePlot.replot() + def color_black_on_white(self): blue = QtGui.qRgb(0x00, 0x00, 0xFF) red = QtGui.qRgb(0xFF, 0x00, 0x00) |