diff options
author | Tom | 2009-10-05 14:55:28 -0400 |
---|---|---|
committer | Tom | 2009-10-05 14:55:28 -0400 |
commit | cf015f49e79e9f5add28121516418eb39c46cad4 (patch) | |
tree | 55f0108ac06e666158e193ad62986d99cb566c02 /gr-utils/src/python/gr_plot_qt.py | |
parent | 95eab8ec6f65f7d77d9a98fc25151b7c1c9e7aa7 (diff) | |
download | gnuradio-cf015f49e79e9f5add28121516418eb39c46cad4.tar.gz gnuradio-cf015f49e79e9f5add28121516418eb39c46cad4.tar.bz2 gnuradio-cf015f49e79e9f5add28121516418eb39c46cad4.zip |
Adding ability to easily reload/reset file
Diffstat (limited to 'gr-utils/src/python/gr_plot_qt.py')
-rwxr-xr-x | gr-utils/src/python/gr_plot_qt.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gr-utils/src/python/gr_plot_qt.py b/gr-utils/src/python/gr_plot_qt.py index a5e3463c8..5e2b3065c 100755 --- a/gr-utils/src/python/gr_plot_qt.py +++ b/gr-utils/src/python/gr_plot_qt.py @@ -154,6 +154,10 @@ class gr_plot_qt(QtGui.QMainWindow): Qt.SIGNAL("activated()"), self.open_file) + self.connect(self.gui.action_reload, + Qt.SIGNAL("activated()"), + self.reload_file) + # Set up file position boxes to update current figure self.connect(self.gui.filePosStartLineEdit, Qt.SIGNAL("editingFinished()"), @@ -225,7 +229,11 @@ class gr_plot_qt(QtGui.QMainWindow): print filename self.initialize(filename) + def reload_file(self): + initialize(self.filename) + def initialize(self, filename): + self.filename = filename self.hfile = open(filename, "r") self.setWindowTitle(("GNU Radio File Plot Utility: %s" % filename)) |