Commit 9e7a118b authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

Fix import errors

QButtonGroup and QApplication apparently moved from QtGui to QtWidgets
somewhere between PyQt5 5.11 and 5.14.
parent e8599ff7
......@@ -169,7 +169,7 @@ class NDScope(QMainWindow, Ui_MainWindow):
##########
# trend
self.trendSelectGroup = QtGui.QButtonGroup()
self.trendSelectGroup = QtWidgets.QButtonGroup()
# NOTE: the numbers correspond to indices in TREND_OPTIONS
self.trendSelectGroup.addButton(self.trendAutoSelect, 0)
self.trendSelectGroup.addButton(self.trendRawSelect, 1)
......@@ -619,7 +619,7 @@ class NDScope(QMainWindow, Ui_MainWindow):
self.data.request(trend, (start, end))
def _fetch(self, **kwargs):
if QtGui.QApplication.keyboardModifiers() == Qt.ShiftModifier:
if QtWidgets.QApplication.keyboardModifiers() == Qt.ShiftModifier:
self.data.reset()
if 't0' in kwargs:
t0 = kwargs['t0']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment