0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

TOOLS/stats-conv: convert to pyqt6

This commit is contained in:
llyyr 2024-07-30 06:21:40 +05:30 committed by Kacper Michajłow
parent 06470899df
commit f1cd59ba92

View File

@ -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()