From f1cd59ba92fd99a63a38643d2b9efeee85b2b209 Mon Sep 17 00:00:00 2001 From: llyyr Date: Tue, 30 Jul 2024 06:21:40 +0530 Subject: [PATCH] TOOLS/stats-conv: convert to pyqt6 --- TOOLS/stats-conv.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TOOLS/stats-conv.py b/TOOLS/stats-conv.py index 16d787ab96..a875879720 100755 --- a/TOOLS/stats-conv.py +++ b/TOOLS/stats-conv.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -from pyqtgraph.Qt import QtGui, QtCore +from PyQt6 import QtWidgets import pyqtgraph as pg import sys import re @@ -135,9 +135,9 @@ for e, index in zip(G.sevents, range(len(G.sevents))): pg.setConfigOption('background', 'w') pg.setConfigOption('foreground', 'k') -app = QtGui.QApplication([]) -win = pg.GraphicsWindow() -#win.resize(1500, 900) +app = QtWidgets.QApplication([]) +win = pg.GraphicsLayoutWidget() +win.show() ax = [None, None] plots = 2 if hasval else 1 @@ -163,4 +163,4 @@ for e in G.sevents: G.curveno[cur] += 1 n = cur.plot([x for x,y in e.vals], [y for x,y in e.vals], **args) -QtGui.QApplication.instance().exec_() +app.exec()