diff options
Diffstat (limited to 'gr-utils/plot_tools')
-rwxr-xr-x | gr-utils/plot_tools/gr_plot_qt | 6 | ||||
-rw-r--r-- | gr-utils/plot_tools/pyqt_filter.py | 4 | ||||
-rw-r--r-- | gr-utils/plot_tools/pyqt_plot.py | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gr-utils/plot_tools/gr_plot_qt b/gr-utils/plot_tools/gr_plot_qt index 5b9f9cf90a..aada9e0bba 100755 --- a/gr-utils/plot_tools/gr_plot_qt +++ b/gr-utils/plot_tools/gr_plot_qt @@ -9,13 +9,13 @@ except ImportError: raise SystemExit(1) try: - from PyQt4 import Qt, QtCore, QtGui + from PyQt5 import Qt, QtCore, QtGui except ImportError: - print("Please install PyQt4 to run this script (http://www.riverbankcomputing.co.uk/software/pyqt/download)") + print("Please install PyQt5 to run this script (http://www.riverbankcomputing.co.uk/software/pyqt/download)") raise SystemExit(1) try: - import PyQt4.Qwt5 as Qwt + import PyQt5.Qwt as Qwt except ImportError: print("Please install PyQwt5 to run this script (http://pyqwt.sourceforge.net/)") raise SystemExit(1) diff --git a/gr-utils/plot_tools/pyqt_filter.py b/gr-utils/plot_tools/pyqt_filter.py index 0c781f2347..d56e45a056 100644 --- a/gr-utils/plot_tools/pyqt_filter.py +++ b/gr-utils/plot_tools/pyqt_filter.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui +from PyQt5 import QtCore, QtGui class Ui_MainWindow(object): def setupUi(self, MainWindow): @@ -431,5 +431,5 @@ class Ui_MainWindow(object): self.action_open.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8)) #from qwt_plot import QwtPlot -from PyQt4.Qwt5 import QwtPlot +from PyQt5.Qwt import QwtPlot diff --git a/gr-utils/plot_tools/pyqt_plot.py b/gr-utils/plot_tools/pyqt_plot.py index bec30c32ad..2d4df6c5a7 100644 --- a/gr-utils/plot_tools/pyqt_plot.py +++ b/gr-utils/plot_tools/pyqt_plot.py @@ -6,7 +6,7 @@ # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui +from PyQt5 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 @@ -268,4 +268,4 @@ class Ui_MainWindow(object): self.action_exit.setText(_translate("MainWindow", "E&xit", None)) self.action_reload.setText(_translate("MainWindow", "&Reload", None)) -from PyQt4 import Qwt5 +from PyQt5 import Qwt |