Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | #!/usr/bin/env python3 |
| 2 | −from pyqtgraph.Qt import QtGui, QtCore | |
| 2 | +from PyQt6 import QtWidgets | |
| 3 | 3 | import pyqtgraph as pg |
| 4 | 4 | import sys |
| 5 | 5 | import re |
| @@ -135,9 +135,9 @@ for e, index in zip(G.sevents, range(len(G.sevents))): · 129 unmodified lines | ||
| 135 | 135 | |
| 136 | 136 | pg.setConfigOption('background', 'w') |
| 137 | 137 | pg.setConfigOption('foreground', 'k') |
| 138 | −app = QtGui.QApplication([]) | |
| 139 | −win = pg.GraphicsWindow() | |
| 140 | −#win.resize(1500, 900) | |
| 138 | +app = QtWidgets.QApplication([]) | |
| 139 | +win = pg.GraphicsLayoutWidget() | |
| 140 | +win.show() | |
| 141 | 141 | |
| 142 | 142 | ax = [None, None] |
| 143 | 143 | plots = 2 if hasval else 1 |
| @@ -163,4 +163,4 @@ for e in G.sevents: · 19 unmodified lines | ||
| 163 | 163 | G.curveno[cur] += 1 |
| 164 | 164 | n = cur.plot([x for x,y in e.vals], [y for x,y in e.vals], **args) |
| 165 | 165 | |
| 166 | −QtGui.QApplication.instance().exec_() | |
| 166 | +app.exec() | |