History

TOOLS/stats-conv: convert to pyqt6

llyyr committed 2 years ago

Commit f1cd59b1 parent 06470891 file · +5 −5Browse files

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t