""" MicrobeGPS setup.py script. Allows direct installation of the tool or creating Python eggs. """
try:
- import PyQt4
+ import PyQt5
except ImportError:
- print('PyQt4 is not installed on your system! Please install PyQt4 first. You can download PyQt4 from http://www.riverbankcomputing.co.uk/software/pyqt/download or use your package manager to install the library.')
+ print('PyQt5 is not installed on your system!')
import sys
sys.exit()
--- a/microbegps/gui.py
+++ b/microbegps/gui.py
@@ -9,7 +9,7 @@ import pkg_resources
import threading
import pickle
-from PyQt4 import QtGui, QtCore
+from PyQt5 import QtGui, QtCore, QtWidgets
import matplotlib.pyplot as plt
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
@@ -79,7 +79,7 @@ First, a subset of reads is selected tha
]
-class Pipeline(QtGui.QWidget):
+class Pipeline(QtWidgets.QWidget):
def __init__(self,mainWindow):
super(Pipeline, self).__init__()
self.mainWindow = mainWindow
@@ -126,13 +126,13 @@ class Pipeline(QtGui.QWidget):