generate template files for pyside6
This commit is contained in:
parent
aa1f4e7547
commit
3584736155
63
examples/ScatterPlotSpeedTestTemplate_pyside6.py
Normal file
63
examples/ScatterPlotSpeedTestTemplate_pyside6.py
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'ScatterPlotSpeedTestTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from pyqtgraph import PlotWidget
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(400, 300)
|
||||||
|
self.gridLayout = QGridLayout(Form)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.sizeSpin = QSpinBox(Form)
|
||||||
|
self.sizeSpin.setObjectName(u"sizeSpin")
|
||||||
|
self.sizeSpin.setValue(10)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.sizeSpin, 1, 1, 1, 1)
|
||||||
|
|
||||||
|
self.pixelModeCheck = QCheckBox(Form)
|
||||||
|
self.pixelModeCheck.setObjectName(u"pixelModeCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.pixelModeCheck, 1, 3, 1, 1)
|
||||||
|
|
||||||
|
self.label = QLabel(Form)
|
||||||
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
self.plot = PlotWidget(Form)
|
||||||
|
self.plot.setObjectName(u"plot")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.plot, 0, 0, 1, 4)
|
||||||
|
|
||||||
|
self.randCheck = QCheckBox(Form)
|
||||||
|
self.randCheck.setObjectName(u"randCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.randCheck, 1, 2, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.pixelModeCheck.setText(QCoreApplication.translate("Form", u"pixel mode", None))
|
||||||
|
self.label.setText(QCoreApplication.translate("Form", u"Size", None))
|
||||||
|
self.randCheck.setText(QCoreApplication.translate("Form", u"Randomize", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
282
examples/VideoTemplate_pyside6.py
Normal file
282
examples/VideoTemplate_pyside6.py
Normal file
@ -0,0 +1,282 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'VideoTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from pyqtgraph import GraphicsView
|
||||||
|
from pyqtgraph.widgets.RawImageWidget import RawImageWidget
|
||||||
|
from pyqtgraph import GradientWidget
|
||||||
|
from pyqtgraph import SpinBox
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_MainWindow(object):
|
||||||
|
def setupUi(self, MainWindow):
|
||||||
|
if not MainWindow.objectName():
|
||||||
|
MainWindow.setObjectName(u"MainWindow")
|
||||||
|
MainWindow.resize(695, 798)
|
||||||
|
self.centralwidget = QWidget(MainWindow)
|
||||||
|
self.centralwidget.setObjectName(u"centralwidget")
|
||||||
|
self.gridLayout_2 = QGridLayout(self.centralwidget)
|
||||||
|
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
||||||
|
self.downsampleCheck = QCheckBox(self.centralwidget)
|
||||||
|
self.downsampleCheck.setObjectName(u"downsampleCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.downsampleCheck, 8, 0, 1, 2)
|
||||||
|
|
||||||
|
self.scaleCheck = QCheckBox(self.centralwidget)
|
||||||
|
self.scaleCheck.setObjectName(u"scaleCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.scaleCheck, 4, 0, 1, 1)
|
||||||
|
|
||||||
|
self.gridLayout = QGridLayout()
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.rawRadio = QRadioButton(self.centralwidget)
|
||||||
|
self.rawRadio.setObjectName(u"rawRadio")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.rawRadio, 3, 0, 1, 1)
|
||||||
|
|
||||||
|
self.gfxRadio = QRadioButton(self.centralwidget)
|
||||||
|
self.gfxRadio.setObjectName(u"gfxRadio")
|
||||||
|
self.gfxRadio.setChecked(True)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.gfxRadio, 2, 0, 1, 1)
|
||||||
|
|
||||||
|
self.stack = QStackedWidget(self.centralwidget)
|
||||||
|
self.stack.setObjectName(u"stack")
|
||||||
|
self.page = QWidget()
|
||||||
|
self.page.setObjectName(u"page")
|
||||||
|
self.gridLayout_3 = QGridLayout(self.page)
|
||||||
|
self.gridLayout_3.setObjectName(u"gridLayout_3")
|
||||||
|
self.graphicsView = GraphicsView(self.page)
|
||||||
|
self.graphicsView.setObjectName(u"graphicsView")
|
||||||
|
|
||||||
|
self.gridLayout_3.addWidget(self.graphicsView, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.stack.addWidget(self.page)
|
||||||
|
self.page_2 = QWidget()
|
||||||
|
self.page_2.setObjectName(u"page_2")
|
||||||
|
self.gridLayout_4 = QGridLayout(self.page_2)
|
||||||
|
self.gridLayout_4.setObjectName(u"gridLayout_4")
|
||||||
|
self.rawImg = RawImageWidget(self.page_2)
|
||||||
|
self.rawImg.setObjectName(u"rawImg")
|
||||||
|
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.rawImg.sizePolicy().hasHeightForWidth())
|
||||||
|
self.rawImg.setSizePolicy(sizePolicy)
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.rawImg, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.stack.addWidget(self.page_2)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.stack, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.rawGLRadio = QRadioButton(self.centralwidget)
|
||||||
|
self.rawGLRadio.setObjectName(u"rawGLRadio")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.rawGLRadio, 4, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 4)
|
||||||
|
|
||||||
|
self.dtypeCombo = QComboBox(self.centralwidget)
|
||||||
|
self.dtypeCombo.addItem("")
|
||||||
|
self.dtypeCombo.addItem("")
|
||||||
|
self.dtypeCombo.addItem("")
|
||||||
|
self.dtypeCombo.setObjectName(u"dtypeCombo")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.dtypeCombo, 3, 2, 1, 1)
|
||||||
|
|
||||||
|
self.label = QLabel(self.centralwidget)
|
||||||
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label, 3, 0, 1, 1)
|
||||||
|
|
||||||
|
self.rgbLevelsCheck = QCheckBox(self.centralwidget)
|
||||||
|
self.rgbLevelsCheck.setObjectName(u"rgbLevelsCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.rgbLevelsCheck, 4, 1, 1, 1)
|
||||||
|
|
||||||
|
self.horizontalLayout_2 = QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
||||||
|
self.minSpin2 = SpinBox(self.centralwidget)
|
||||||
|
self.minSpin2.setObjectName(u"minSpin2")
|
||||||
|
self.minSpin2.setEnabled(False)
|
||||||
|
|
||||||
|
self.horizontalLayout_2.addWidget(self.minSpin2)
|
||||||
|
|
||||||
|
self.label_3 = QLabel(self.centralwidget)
|
||||||
|
self.label_3.setObjectName(u"label_3")
|
||||||
|
self.label_3.setAlignment(Qt.AlignCenter)
|
||||||
|
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_3)
|
||||||
|
|
||||||
|
self.maxSpin2 = SpinBox(self.centralwidget)
|
||||||
|
self.maxSpin2.setObjectName(u"maxSpin2")
|
||||||
|
self.maxSpin2.setEnabled(False)
|
||||||
|
|
||||||
|
self.horizontalLayout_2.addWidget(self.maxSpin2)
|
||||||
|
|
||||||
|
|
||||||
|
self.gridLayout_2.addLayout(self.horizontalLayout_2, 5, 2, 1, 1)
|
||||||
|
|
||||||
|
self.horizontalLayout = QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||||
|
self.minSpin1 = SpinBox(self.centralwidget)
|
||||||
|
self.minSpin1.setObjectName(u"minSpin1")
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.minSpin1)
|
||||||
|
|
||||||
|
self.label_2 = QLabel(self.centralwidget)
|
||||||
|
self.label_2.setObjectName(u"label_2")
|
||||||
|
self.label_2.setAlignment(Qt.AlignCenter)
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.label_2)
|
||||||
|
|
||||||
|
self.maxSpin1 = SpinBox(self.centralwidget)
|
||||||
|
self.maxSpin1.setObjectName(u"maxSpin1")
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.maxSpin1)
|
||||||
|
|
||||||
|
|
||||||
|
self.gridLayout_2.addLayout(self.horizontalLayout, 4, 2, 1, 1)
|
||||||
|
|
||||||
|
self.horizontalLayout_3 = QHBoxLayout()
|
||||||
|
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
||||||
|
self.minSpin3 = SpinBox(self.centralwidget)
|
||||||
|
self.minSpin3.setObjectName(u"minSpin3")
|
||||||
|
self.minSpin3.setEnabled(False)
|
||||||
|
|
||||||
|
self.horizontalLayout_3.addWidget(self.minSpin3)
|
||||||
|
|
||||||
|
self.label_4 = QLabel(self.centralwidget)
|
||||||
|
self.label_4.setObjectName(u"label_4")
|
||||||
|
self.label_4.setAlignment(Qt.AlignCenter)
|
||||||
|
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_4)
|
||||||
|
|
||||||
|
self.maxSpin3 = SpinBox(self.centralwidget)
|
||||||
|
self.maxSpin3.setObjectName(u"maxSpin3")
|
||||||
|
self.maxSpin3.setEnabled(False)
|
||||||
|
|
||||||
|
self.horizontalLayout_3.addWidget(self.maxSpin3)
|
||||||
|
|
||||||
|
|
||||||
|
self.gridLayout_2.addLayout(self.horizontalLayout_3, 6, 2, 1, 1)
|
||||||
|
|
||||||
|
self.lutCheck = QCheckBox(self.centralwidget)
|
||||||
|
self.lutCheck.setObjectName(u"lutCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.lutCheck, 7, 0, 1, 1)
|
||||||
|
|
||||||
|
self.alphaCheck = QCheckBox(self.centralwidget)
|
||||||
|
self.alphaCheck.setObjectName(u"alphaCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.alphaCheck, 7, 1, 1, 1)
|
||||||
|
|
||||||
|
self.gradient = GradientWidget(self.centralwidget)
|
||||||
|
self.gradient.setObjectName(u"gradient")
|
||||||
|
sizePolicy.setHeightForWidth(self.gradient.sizePolicy().hasHeightForWidth())
|
||||||
|
self.gradient.setSizePolicy(sizePolicy)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.gradient, 7, 2, 1, 2)
|
||||||
|
|
||||||
|
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
||||||
|
|
||||||
|
self.gridLayout_2.addItem(self.horizontalSpacer, 3, 3, 1, 1)
|
||||||
|
|
||||||
|
self.fpsLabel = QLabel(self.centralwidget)
|
||||||
|
self.fpsLabel.setObjectName(u"fpsLabel")
|
||||||
|
font = QFont()
|
||||||
|
font.setPointSize(12)
|
||||||
|
self.fpsLabel.setFont(font)
|
||||||
|
self.fpsLabel.setAlignment(Qt.AlignCenter)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.fpsLabel, 0, 0, 1, 4)
|
||||||
|
|
||||||
|
self.rgbCheck = QCheckBox(self.centralwidget)
|
||||||
|
self.rgbCheck.setObjectName(u"rgbCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.rgbCheck, 3, 1, 1, 1)
|
||||||
|
|
||||||
|
self.label_5 = QLabel(self.centralwidget)
|
||||||
|
self.label_5.setObjectName(u"label_5")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
|
||||||
|
|
||||||
|
self.horizontalLayout_4 = QHBoxLayout()
|
||||||
|
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
|
||||||
|
self.framesSpin = QSpinBox(self.centralwidget)
|
||||||
|
self.framesSpin.setObjectName(u"framesSpin")
|
||||||
|
self.framesSpin.setButtonSymbols(QAbstractSpinBox.NoButtons)
|
||||||
|
self.framesSpin.setValue(10)
|
||||||
|
|
||||||
|
self.horizontalLayout_4.addWidget(self.framesSpin)
|
||||||
|
|
||||||
|
self.widthSpin = QSpinBox(self.centralwidget)
|
||||||
|
self.widthSpin.setObjectName(u"widthSpin")
|
||||||
|
self.widthSpin.setButtonSymbols(QAbstractSpinBox.PlusMinus)
|
||||||
|
self.widthSpin.setMaximum(10000)
|
||||||
|
self.widthSpin.setValue(512)
|
||||||
|
|
||||||
|
self.horizontalLayout_4.addWidget(self.widthSpin)
|
||||||
|
|
||||||
|
self.heightSpin = QSpinBox(self.centralwidget)
|
||||||
|
self.heightSpin.setObjectName(u"heightSpin")
|
||||||
|
self.heightSpin.setButtonSymbols(QAbstractSpinBox.NoButtons)
|
||||||
|
self.heightSpin.setMaximum(10000)
|
||||||
|
self.heightSpin.setValue(512)
|
||||||
|
|
||||||
|
self.horizontalLayout_4.addWidget(self.heightSpin)
|
||||||
|
|
||||||
|
|
||||||
|
self.gridLayout_2.addLayout(self.horizontalLayout_4, 2, 1, 1, 2)
|
||||||
|
|
||||||
|
self.sizeLabel = QLabel(self.centralwidget)
|
||||||
|
self.sizeLabel.setObjectName(u"sizeLabel")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.sizeLabel, 2, 3, 1, 1)
|
||||||
|
|
||||||
|
MainWindow.setCentralWidget(self.centralwidget)
|
||||||
|
|
||||||
|
self.retranslateUi(MainWindow)
|
||||||
|
|
||||||
|
self.stack.setCurrentIndex(1)
|
||||||
|
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(MainWindow)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, MainWindow):
|
||||||
|
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
|
||||||
|
self.downsampleCheck.setText(QCoreApplication.translate("MainWindow", u"Auto downsample", None))
|
||||||
|
self.scaleCheck.setText(QCoreApplication.translate("MainWindow", u"Scale Data", None))
|
||||||
|
self.rawRadio.setText(QCoreApplication.translate("MainWindow", u"RawImageWidget", None))
|
||||||
|
self.gfxRadio.setText(QCoreApplication.translate("MainWindow", u"GraphicsView + ImageItem", None))
|
||||||
|
self.rawGLRadio.setText(QCoreApplication.translate("MainWindow", u"RawGLImageWidget", None))
|
||||||
|
self.dtypeCombo.setItemText(0, QCoreApplication.translate("MainWindow", u"uint8", None))
|
||||||
|
self.dtypeCombo.setItemText(1, QCoreApplication.translate("MainWindow", u"uint16", None))
|
||||||
|
self.dtypeCombo.setItemText(2, QCoreApplication.translate("MainWindow", u"float", None))
|
||||||
|
|
||||||
|
self.label.setText(QCoreApplication.translate("MainWindow", u"Data type", None))
|
||||||
|
self.rgbLevelsCheck.setText(QCoreApplication.translate("MainWindow", u"RGB", None))
|
||||||
|
self.label_3.setText(QCoreApplication.translate("MainWindow", u"<--->", None))
|
||||||
|
self.label_2.setText(QCoreApplication.translate("MainWindow", u"<--->", None))
|
||||||
|
self.label_4.setText(QCoreApplication.translate("MainWindow", u"<--->", None))
|
||||||
|
self.lutCheck.setText(QCoreApplication.translate("MainWindow", u"Use Lookup Table", None))
|
||||||
|
self.alphaCheck.setText(QCoreApplication.translate("MainWindow", u"alpha", None))
|
||||||
|
self.fpsLabel.setText(QCoreApplication.translate("MainWindow", u"FPS", None))
|
||||||
|
self.rgbCheck.setText(QCoreApplication.translate("MainWindow", u"RGB", None))
|
||||||
|
self.label_5.setText(QCoreApplication.translate("MainWindow", u"Image size", None))
|
||||||
|
self.sizeLabel.setText("")
|
||||||
|
# retranslateUi
|
||||||
|
|
45
examples/designerExample_pyside6.py
Normal file
45
examples/designerExample_pyside6.py
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'designerExample.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from pyqtgraph import PlotWidget
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(400, 300)
|
||||||
|
self.gridLayout = QGridLayout(Form)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.plotBtn = QPushButton(Form)
|
||||||
|
self.plotBtn.setObjectName(u"plotBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.plotBtn, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.plot = PlotWidget(Form)
|
||||||
|
self.plot.setObjectName(u"plot")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.plot, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.plotBtn.setText(QCoreApplication.translate("Form", u"Plot!", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
125
examples/exampleLoaderTemplate_pyside6.py
Normal file
125
examples/exampleLoaderTemplate_pyside6.py
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'exampleLoaderTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(846, 552)
|
||||||
|
self.gridLayout_2 = QGridLayout(Form)
|
||||||
|
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
||||||
|
self.splitter = QSplitter(Form)
|
||||||
|
self.splitter.setObjectName(u"splitter")
|
||||||
|
self.splitter.setOrientation(Qt.Horizontal)
|
||||||
|
self.widget = QWidget(self.splitter)
|
||||||
|
self.widget.setObjectName(u"widget")
|
||||||
|
self.gridLayout = QGridLayout(self.widget)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.exampleTree = QTreeWidget(self.widget)
|
||||||
|
__qtreewidgetitem = QTreeWidgetItem()
|
||||||
|
__qtreewidgetitem.setText(0, u"1");
|
||||||
|
self.exampleTree.setHeaderItem(__qtreewidgetitem)
|
||||||
|
self.exampleTree.setObjectName(u"exampleTree")
|
||||||
|
self.exampleTree.header().setVisible(False)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.exampleTree, 0, 0, 1, 2)
|
||||||
|
|
||||||
|
self.graphicsSystemCombo = QComboBox(self.widget)
|
||||||
|
self.graphicsSystemCombo.addItem("")
|
||||||
|
self.graphicsSystemCombo.addItem("")
|
||||||
|
self.graphicsSystemCombo.addItem("")
|
||||||
|
self.graphicsSystemCombo.addItem("")
|
||||||
|
self.graphicsSystemCombo.setObjectName(u"graphicsSystemCombo")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.graphicsSystemCombo, 2, 1, 1, 1)
|
||||||
|
|
||||||
|
self.qtLibCombo = QComboBox(self.widget)
|
||||||
|
self.qtLibCombo.addItem("")
|
||||||
|
self.qtLibCombo.addItem("")
|
||||||
|
self.qtLibCombo.addItem("")
|
||||||
|
self.qtLibCombo.addItem("")
|
||||||
|
self.qtLibCombo.addItem("")
|
||||||
|
self.qtLibCombo.setObjectName(u"qtLibCombo")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.qtLibCombo, 1, 1, 1, 1)
|
||||||
|
|
||||||
|
self.label_2 = QLabel(self.widget)
|
||||||
|
self.label_2.setObjectName(u"label_2")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
|
||||||
|
|
||||||
|
self.label = QLabel(self.widget)
|
||||||
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
self.loadBtn = QPushButton(self.widget)
|
||||||
|
self.loadBtn.setObjectName(u"loadBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.loadBtn, 3, 1, 1, 1)
|
||||||
|
|
||||||
|
self.splitter.addWidget(self.widget)
|
||||||
|
self.widget1 = QWidget(self.splitter)
|
||||||
|
self.widget1.setObjectName(u"widget1")
|
||||||
|
self.verticalLayout = QVBoxLayout(self.widget1)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.loadedFileLabel = QLabel(self.widget1)
|
||||||
|
self.loadedFileLabel.setObjectName(u"loadedFileLabel")
|
||||||
|
font = QFont()
|
||||||
|
font.setBold(True)
|
||||||
|
self.loadedFileLabel.setFont(font)
|
||||||
|
self.loadedFileLabel.setAlignment(Qt.AlignCenter)
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.loadedFileLabel)
|
||||||
|
|
||||||
|
self.codeView = QPlainTextEdit(self.widget1)
|
||||||
|
self.codeView.setObjectName(u"codeView")
|
||||||
|
font1 = QFont()
|
||||||
|
font1.setFamily(u"Courier New")
|
||||||
|
self.codeView.setFont(font1)
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.codeView)
|
||||||
|
|
||||||
|
self.splitter.addWidget(self.widget1)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.graphicsSystemCombo.setItemText(0, QCoreApplication.translate("Form", u"default", None))
|
||||||
|
self.graphicsSystemCombo.setItemText(1, QCoreApplication.translate("Form", u"native", None))
|
||||||
|
self.graphicsSystemCombo.setItemText(2, QCoreApplication.translate("Form", u"raster", None))
|
||||||
|
self.graphicsSystemCombo.setItemText(3, QCoreApplication.translate("Form", u"opengl", None))
|
||||||
|
|
||||||
|
self.qtLibCombo.setItemText(0, QCoreApplication.translate("Form", u"default", None))
|
||||||
|
self.qtLibCombo.setItemText(1, QCoreApplication.translate("Form", u"PyQt4", None))
|
||||||
|
self.qtLibCombo.setItemText(2, QCoreApplication.translate("Form", u"PySide", None))
|
||||||
|
self.qtLibCombo.setItemText(3, QCoreApplication.translate("Form", u"PyQt5", None))
|
||||||
|
self.qtLibCombo.setItemText(4, QCoreApplication.translate("Form", u"PySide2", None))
|
||||||
|
|
||||||
|
self.label_2.setText(QCoreApplication.translate("Form", u"Graphics System:", None))
|
||||||
|
self.label.setText(QCoreApplication.translate("Form", u"Qt Library:", None))
|
||||||
|
self.loadBtn.setText(QCoreApplication.translate("Form", u"Run Example", None))
|
||||||
|
self.loadedFileLabel.setText("")
|
||||||
|
# retranslateUi
|
||||||
|
|
94
pyqtgraph/GraphicsScene/exportDialogTemplate_pyside6.py
Normal file
94
pyqtgraph/GraphicsScene/exportDialogTemplate_pyside6.py
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'exportDialogTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from ..parametertree import ParameterTree
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(241, 367)
|
||||||
|
self.gridLayout = QGridLayout(Form)
|
||||||
|
self.gridLayout.setSpacing(0)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.label = QLabel(Form)
|
||||||
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 3)
|
||||||
|
|
||||||
|
self.itemTree = QTreeWidget(Form)
|
||||||
|
__qtreewidgetitem = QTreeWidgetItem()
|
||||||
|
__qtreewidgetitem.setText(0, u"1");
|
||||||
|
self.itemTree.setHeaderItem(__qtreewidgetitem)
|
||||||
|
self.itemTree.setObjectName(u"itemTree")
|
||||||
|
self.itemTree.header().setVisible(False)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.itemTree, 1, 0, 1, 3)
|
||||||
|
|
||||||
|
self.label_2 = QLabel(Form)
|
||||||
|
self.label_2.setObjectName(u"label_2")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 3)
|
||||||
|
|
||||||
|
self.formatList = QListWidget(Form)
|
||||||
|
self.formatList.setObjectName(u"formatList")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.formatList, 3, 0, 1, 3)
|
||||||
|
|
||||||
|
self.exportBtn = QPushButton(Form)
|
||||||
|
self.exportBtn.setObjectName(u"exportBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.exportBtn, 6, 1, 1, 1)
|
||||||
|
|
||||||
|
self.closeBtn = QPushButton(Form)
|
||||||
|
self.closeBtn.setObjectName(u"closeBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.closeBtn, 6, 2, 1, 1)
|
||||||
|
|
||||||
|
self.paramTree = ParameterTree(Form)
|
||||||
|
__qtreewidgetitem1 = QTreeWidgetItem()
|
||||||
|
__qtreewidgetitem1.setText(0, u"1");
|
||||||
|
self.paramTree.setHeaderItem(__qtreewidgetitem1)
|
||||||
|
self.paramTree.setObjectName(u"paramTree")
|
||||||
|
self.paramTree.header().setVisible(False)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.paramTree, 5, 0, 1, 3)
|
||||||
|
|
||||||
|
self.label_3 = QLabel(Form)
|
||||||
|
self.label_3.setObjectName(u"label_3")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.label_3, 4, 0, 1, 3)
|
||||||
|
|
||||||
|
self.copyBtn = QPushButton(Form)
|
||||||
|
self.copyBtn.setObjectName(u"copyBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.copyBtn, 6, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"Export", None))
|
||||||
|
self.label.setText(QCoreApplication.translate("Form", u"Item to export:", None))
|
||||||
|
self.label_2.setText(QCoreApplication.translate("Form", u"Export format", None))
|
||||||
|
self.exportBtn.setText(QCoreApplication.translate("Form", u"Export", None))
|
||||||
|
self.closeBtn.setText(QCoreApplication.translate("Form", u"Close", None))
|
||||||
|
self.label_3.setText(QCoreApplication.translate("Form", u"Export options", None))
|
||||||
|
self.copyBtn.setText(QCoreApplication.translate("Form", u"Copy", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
126
pyqtgraph/canvas/CanvasTemplate_pyside6.py
Normal file
126
pyqtgraph/canvas/CanvasTemplate_pyside6.py
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'CanvasTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from ..widgets.TreeWidget import TreeWidget
|
||||||
|
from ..widgets.GraphicsView import GraphicsView
|
||||||
|
from .CanvasManager import CanvasCombo
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(821, 578)
|
||||||
|
self.gridLayout_2 = QGridLayout(Form)
|
||||||
|
self.gridLayout_2.setSpacing(0)
|
||||||
|
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
||||||
|
self.splitter = QSplitter(Form)
|
||||||
|
self.splitter.setObjectName(u"splitter")
|
||||||
|
self.splitter.setOrientation(Qt.Horizontal)
|
||||||
|
self.view = GraphicsView(self.splitter)
|
||||||
|
self.view.setObjectName(u"view")
|
||||||
|
self.splitter.addWidget(self.view)
|
||||||
|
self.vsplitter = QSplitter(self.splitter)
|
||||||
|
self.vsplitter.setObjectName(u"vsplitter")
|
||||||
|
self.vsplitter.setOrientation(Qt.Vertical)
|
||||||
|
self.canvasCtrlWidget = QWidget(self.vsplitter)
|
||||||
|
self.canvasCtrlWidget.setObjectName(u"canvasCtrlWidget")
|
||||||
|
self.gridLayout = QGridLayout(self.canvasCtrlWidget)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.autoRangeBtn = QPushButton(self.canvasCtrlWidget)
|
||||||
|
self.autoRangeBtn.setObjectName(u"autoRangeBtn")
|
||||||
|
sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(1)
|
||||||
|
sizePolicy.setHeightForWidth(self.autoRangeBtn.sizePolicy().hasHeightForWidth())
|
||||||
|
self.autoRangeBtn.setSizePolicy(sizePolicy)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.autoRangeBtn, 0, 0, 1, 2)
|
||||||
|
|
||||||
|
self.horizontalLayout = QHBoxLayout()
|
||||||
|
self.horizontalLayout.setSpacing(0)
|
||||||
|
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||||
|
self.redirectCheck = QCheckBox(self.canvasCtrlWidget)
|
||||||
|
self.redirectCheck.setObjectName(u"redirectCheck")
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.redirectCheck)
|
||||||
|
|
||||||
|
self.redirectCombo = CanvasCombo(self.canvasCtrlWidget)
|
||||||
|
self.redirectCombo.setObjectName(u"redirectCombo")
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.redirectCombo)
|
||||||
|
|
||||||
|
|
||||||
|
self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 2)
|
||||||
|
|
||||||
|
self.itemList = TreeWidget(self.canvasCtrlWidget)
|
||||||
|
__qtreewidgetitem = QTreeWidgetItem()
|
||||||
|
__qtreewidgetitem.setText(0, u"1");
|
||||||
|
self.itemList.setHeaderItem(__qtreewidgetitem)
|
||||||
|
self.itemList.setObjectName(u"itemList")
|
||||||
|
sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
|
||||||
|
sizePolicy1.setHorizontalStretch(0)
|
||||||
|
sizePolicy1.setVerticalStretch(100)
|
||||||
|
sizePolicy1.setHeightForWidth(self.itemList.sizePolicy().hasHeightForWidth())
|
||||||
|
self.itemList.setSizePolicy(sizePolicy1)
|
||||||
|
self.itemList.setHeaderHidden(True)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.itemList, 2, 0, 1, 2)
|
||||||
|
|
||||||
|
self.resetTransformsBtn = QPushButton(self.canvasCtrlWidget)
|
||||||
|
self.resetTransformsBtn.setObjectName(u"resetTransformsBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.resetTransformsBtn, 3, 0, 1, 2)
|
||||||
|
|
||||||
|
self.mirrorSelectionBtn = QPushButton(self.canvasCtrlWidget)
|
||||||
|
self.mirrorSelectionBtn.setObjectName(u"mirrorSelectionBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.mirrorSelectionBtn, 4, 0, 1, 1)
|
||||||
|
|
||||||
|
self.reflectSelectionBtn = QPushButton(self.canvasCtrlWidget)
|
||||||
|
self.reflectSelectionBtn.setObjectName(u"reflectSelectionBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.reflectSelectionBtn, 4, 1, 1, 1)
|
||||||
|
|
||||||
|
self.vsplitter.addWidget(self.canvasCtrlWidget)
|
||||||
|
self.canvasItemCtrl = QWidget(self.vsplitter)
|
||||||
|
self.canvasItemCtrl.setObjectName(u"canvasItemCtrl")
|
||||||
|
self.ctrlLayout = QGridLayout(self.canvasItemCtrl)
|
||||||
|
self.ctrlLayout.setSpacing(0)
|
||||||
|
self.ctrlLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.ctrlLayout.setObjectName(u"ctrlLayout")
|
||||||
|
self.vsplitter.addWidget(self.canvasItemCtrl)
|
||||||
|
self.splitter.addWidget(self.vsplitter)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.autoRangeBtn.setText(QCoreApplication.translate("Form", u"Auto Range", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.redirectCheck.setToolTip(QCoreApplication.translate("Form", u"Check to display all local items in a remote canvas.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.redirectCheck.setText(QCoreApplication.translate("Form", u"Redirect", None))
|
||||||
|
self.resetTransformsBtn.setText(QCoreApplication.translate("Form", u"Reset Transforms", None))
|
||||||
|
self.mirrorSelectionBtn.setText(QCoreApplication.translate("Form", u"Mirror Selection", None))
|
||||||
|
self.reflectSelectionBtn.setText(QCoreApplication.translate("Form", u"MirrorXY", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
77
pyqtgraph/canvas/TransformGuiTemplate_pyside6.py
Normal file
77
pyqtgraph/canvas/TransformGuiTemplate_pyside6.py
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'TransformGuiTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(224, 117)
|
||||||
|
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
|
||||||
|
Form.setSizePolicy(sizePolicy)
|
||||||
|
self.verticalLayout = QVBoxLayout(Form)
|
||||||
|
self.verticalLayout.setSpacing(1)
|
||||||
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.translateLabel = QLabel(Form)
|
||||||
|
self.translateLabel.setObjectName(u"translateLabel")
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.translateLabel)
|
||||||
|
|
||||||
|
self.rotateLabel = QLabel(Form)
|
||||||
|
self.rotateLabel.setObjectName(u"rotateLabel")
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.rotateLabel)
|
||||||
|
|
||||||
|
self.scaleLabel = QLabel(Form)
|
||||||
|
self.scaleLabel.setObjectName(u"scaleLabel")
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.scaleLabel)
|
||||||
|
|
||||||
|
self.horizontalLayout = QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||||
|
self.mirrorImageBtn = QPushButton(Form)
|
||||||
|
self.mirrorImageBtn.setObjectName(u"mirrorImageBtn")
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.mirrorImageBtn)
|
||||||
|
|
||||||
|
self.reflectImageBtn = QPushButton(Form)
|
||||||
|
self.reflectImageBtn.setObjectName(u"reflectImageBtn")
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.reflectImageBtn)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.translateLabel.setText(QCoreApplication.translate("Form", u"Translate:", None))
|
||||||
|
self.rotateLabel.setText(QCoreApplication.translate("Form", u"Rotate:", None))
|
||||||
|
self.scaleLabel.setText(QCoreApplication.translate("Form", u"Scale:", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.mirrorImageBtn.setToolTip("")
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.mirrorImageBtn.setText(QCoreApplication.translate("Form", u"Mirror", None))
|
||||||
|
self.reflectImageBtn.setText(QCoreApplication.translate("Form", u"Reflect", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
157
pyqtgraph/console/template_pyside6.py
Normal file
157
pyqtgraph/console/template_pyside6.py
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'template.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from .CmdInput import CmdInput
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(739, 497)
|
||||||
|
self.gridLayout = QGridLayout(Form)
|
||||||
|
self.gridLayout.setSpacing(0)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.splitter = QSplitter(Form)
|
||||||
|
self.splitter.setObjectName(u"splitter")
|
||||||
|
self.splitter.setOrientation(Qt.Vertical)
|
||||||
|
self.layoutWidget = QWidget(self.splitter)
|
||||||
|
self.layoutWidget.setObjectName(u"layoutWidget")
|
||||||
|
self.verticalLayout = QVBoxLayout(self.layoutWidget)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.output = QPlainTextEdit(self.layoutWidget)
|
||||||
|
self.output.setObjectName(u"output")
|
||||||
|
font = QFont()
|
||||||
|
font.setFamily(u"Monospace")
|
||||||
|
self.output.setFont(font)
|
||||||
|
self.output.setReadOnly(True)
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.output)
|
||||||
|
|
||||||
|
self.horizontalLayout = QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||||
|
self.input = CmdInput(self.layoutWidget)
|
||||||
|
self.input.setObjectName(u"input")
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.input)
|
||||||
|
|
||||||
|
self.historyBtn = QPushButton(self.layoutWidget)
|
||||||
|
self.historyBtn.setObjectName(u"historyBtn")
|
||||||
|
self.historyBtn.setCheckable(True)
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.historyBtn)
|
||||||
|
|
||||||
|
self.exceptionBtn = QPushButton(self.layoutWidget)
|
||||||
|
self.exceptionBtn.setObjectName(u"exceptionBtn")
|
||||||
|
self.exceptionBtn.setCheckable(True)
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.exceptionBtn)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||||
|
|
||||||
|
self.splitter.addWidget(self.layoutWidget)
|
||||||
|
self.historyList = QListWidget(self.splitter)
|
||||||
|
self.historyList.setObjectName(u"historyList")
|
||||||
|
self.historyList.setFont(font)
|
||||||
|
self.splitter.addWidget(self.historyList)
|
||||||
|
self.exceptionGroup = QGroupBox(self.splitter)
|
||||||
|
self.exceptionGroup.setObjectName(u"exceptionGroup")
|
||||||
|
self.gridLayout_2 = QGridLayout(self.exceptionGroup)
|
||||||
|
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
||||||
|
self.gridLayout_2.setHorizontalSpacing(2)
|
||||||
|
self.gridLayout_2.setVerticalSpacing(0)
|
||||||
|
self.gridLayout_2.setContentsMargins(-1, 0, -1, 0)
|
||||||
|
self.clearExceptionBtn = QPushButton(self.exceptionGroup)
|
||||||
|
self.clearExceptionBtn.setObjectName(u"clearExceptionBtn")
|
||||||
|
self.clearExceptionBtn.setEnabled(False)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.clearExceptionBtn, 0, 6, 1, 1)
|
||||||
|
|
||||||
|
self.catchAllExceptionsBtn = QPushButton(self.exceptionGroup)
|
||||||
|
self.catchAllExceptionsBtn.setObjectName(u"catchAllExceptionsBtn")
|
||||||
|
self.catchAllExceptionsBtn.setCheckable(True)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.catchAllExceptionsBtn, 0, 1, 1, 1)
|
||||||
|
|
||||||
|
self.catchNextExceptionBtn = QPushButton(self.exceptionGroup)
|
||||||
|
self.catchNextExceptionBtn.setObjectName(u"catchNextExceptionBtn")
|
||||||
|
self.catchNextExceptionBtn.setCheckable(True)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.catchNextExceptionBtn, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.onlyUncaughtCheck = QCheckBox(self.exceptionGroup)
|
||||||
|
self.onlyUncaughtCheck.setObjectName(u"onlyUncaughtCheck")
|
||||||
|
self.onlyUncaughtCheck.setChecked(True)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.onlyUncaughtCheck, 0, 4, 1, 1)
|
||||||
|
|
||||||
|
self.exceptionStackList = QListWidget(self.exceptionGroup)
|
||||||
|
self.exceptionStackList.setObjectName(u"exceptionStackList")
|
||||||
|
self.exceptionStackList.setAlternatingRowColors(True)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.exceptionStackList, 2, 0, 1, 7)
|
||||||
|
|
||||||
|
self.runSelectedFrameCheck = QCheckBox(self.exceptionGroup)
|
||||||
|
self.runSelectedFrameCheck.setObjectName(u"runSelectedFrameCheck")
|
||||||
|
self.runSelectedFrameCheck.setChecked(True)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.runSelectedFrameCheck, 3, 0, 1, 7)
|
||||||
|
|
||||||
|
self.exceptionInfoLabel = QLabel(self.exceptionGroup)
|
||||||
|
self.exceptionInfoLabel.setObjectName(u"exceptionInfoLabel")
|
||||||
|
self.exceptionInfoLabel.setWordWrap(True)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.exceptionInfoLabel, 1, 0, 1, 7)
|
||||||
|
|
||||||
|
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
||||||
|
|
||||||
|
self.gridLayout_2.addItem(self.horizontalSpacer, 0, 5, 1, 1)
|
||||||
|
|
||||||
|
self.label = QLabel(self.exceptionGroup)
|
||||||
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label, 0, 2, 1, 1)
|
||||||
|
|
||||||
|
self.filterText = QLineEdit(self.exceptionGroup)
|
||||||
|
self.filterText.setObjectName(u"filterText")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.filterText, 0, 3, 1, 1)
|
||||||
|
|
||||||
|
self.splitter.addWidget(self.exceptionGroup)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"Console", None))
|
||||||
|
self.historyBtn.setText(QCoreApplication.translate("Form", u"History..", None))
|
||||||
|
self.exceptionBtn.setText(QCoreApplication.translate("Form", u"Exceptions..", None))
|
||||||
|
self.exceptionGroup.setTitle(QCoreApplication.translate("Form", u"Exception Handling", None))
|
||||||
|
self.clearExceptionBtn.setText(QCoreApplication.translate("Form", u"Clear Stack", None))
|
||||||
|
self.catchAllExceptionsBtn.setText(QCoreApplication.translate("Form", u"Show All Exceptions", None))
|
||||||
|
self.catchNextExceptionBtn.setText(QCoreApplication.translate("Form", u"Show Next Exception", None))
|
||||||
|
self.onlyUncaughtCheck.setText(QCoreApplication.translate("Form", u"Only Uncaught Exceptions", None))
|
||||||
|
self.runSelectedFrameCheck.setText(QCoreApplication.translate("Form", u"Run commands in selected stack frame", None))
|
||||||
|
self.exceptionInfoLabel.setText(QCoreApplication.translate("Form", u"Stack Trace", None))
|
||||||
|
self.label.setText(QCoreApplication.translate("Form", u"Filter (regex):", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
90
pyqtgraph/flowchart/FlowchartCtrlTemplate_pyside6.py
Normal file
90
pyqtgraph/flowchart/FlowchartCtrlTemplate_pyside6.py
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'FlowchartCtrlTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from ..widgets.TreeWidget import TreeWidget
|
||||||
|
from ..widgets.FeedbackButton import FeedbackButton
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(217, 499)
|
||||||
|
self.gridLayout = QGridLayout(Form)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.gridLayout.setVerticalSpacing(0)
|
||||||
|
self.loadBtn = QPushButton(Form)
|
||||||
|
self.loadBtn.setObjectName(u"loadBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.loadBtn, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
self.saveBtn = FeedbackButton(Form)
|
||||||
|
self.saveBtn.setObjectName(u"saveBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.saveBtn, 1, 1, 1, 2)
|
||||||
|
|
||||||
|
self.saveAsBtn = FeedbackButton(Form)
|
||||||
|
self.saveAsBtn.setObjectName(u"saveAsBtn")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.saveAsBtn, 1, 3, 1, 1)
|
||||||
|
|
||||||
|
self.reloadBtn = FeedbackButton(Form)
|
||||||
|
self.reloadBtn.setObjectName(u"reloadBtn")
|
||||||
|
self.reloadBtn.setCheckable(False)
|
||||||
|
self.reloadBtn.setFlat(False)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.reloadBtn, 4, 0, 1, 2)
|
||||||
|
|
||||||
|
self.showChartBtn = QPushButton(Form)
|
||||||
|
self.showChartBtn.setObjectName(u"showChartBtn")
|
||||||
|
self.showChartBtn.setCheckable(True)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.showChartBtn, 4, 2, 1, 2)
|
||||||
|
|
||||||
|
self.ctrlList = TreeWidget(Form)
|
||||||
|
__qtreewidgetitem = QTreeWidgetItem()
|
||||||
|
__qtreewidgetitem.setText(0, u"1");
|
||||||
|
self.ctrlList.setHeaderItem(__qtreewidgetitem)
|
||||||
|
self.ctrlList.setObjectName(u"ctrlList")
|
||||||
|
self.ctrlList.header().setVisible(False)
|
||||||
|
self.ctrlList.header().setStretchLastSection(False)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.ctrlList, 3, 0, 1, 4)
|
||||||
|
|
||||||
|
self.fileNameLabel = QLabel(Form)
|
||||||
|
self.fileNameLabel.setObjectName(u"fileNameLabel")
|
||||||
|
font = QFont()
|
||||||
|
font.setBold(True)
|
||||||
|
self.fileNameLabel.setFont(font)
|
||||||
|
self.fileNameLabel.setAlignment(Qt.AlignCenter)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.fileNameLabel, 0, 1, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.loadBtn.setText(QCoreApplication.translate("Form", u"Load..", None))
|
||||||
|
self.saveBtn.setText(QCoreApplication.translate("Form", u"Save", None))
|
||||||
|
self.saveAsBtn.setText(QCoreApplication.translate("Form", u"As..", None))
|
||||||
|
self.reloadBtn.setText(QCoreApplication.translate("Form", u"Reload Libs", None))
|
||||||
|
self.showChartBtn.setText(QCoreApplication.translate("Form", u"Flowchart", None))
|
||||||
|
self.fileNameLabel.setText("")
|
||||||
|
# retranslateUi
|
||||||
|
|
69
pyqtgraph/flowchart/FlowchartTemplate_pyside6.py
Normal file
69
pyqtgraph/flowchart/FlowchartTemplate_pyside6.py
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'FlowchartTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from ..widgets.DataTreeWidget import DataTreeWidget
|
||||||
|
from ..flowchart.FlowchartGraphicsView import FlowchartGraphicsView
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(529, 329)
|
||||||
|
self.selInfoWidget = QWidget(Form)
|
||||||
|
self.selInfoWidget.setObjectName(u"selInfoWidget")
|
||||||
|
self.selInfoWidget.setGeometry(QRect(260, 10, 264, 222))
|
||||||
|
self.gridLayout = QGridLayout(self.selInfoWidget)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.selDescLabel = QLabel(self.selInfoWidget)
|
||||||
|
self.selDescLabel.setObjectName(u"selDescLabel")
|
||||||
|
self.selDescLabel.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
|
||||||
|
self.selDescLabel.setWordWrap(True)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.selDescLabel, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.selNameLabel = QLabel(self.selInfoWidget)
|
||||||
|
self.selNameLabel.setObjectName(u"selNameLabel")
|
||||||
|
font = QFont()
|
||||||
|
font.setBold(True)
|
||||||
|
self.selNameLabel.setFont(font)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.selNameLabel, 0, 1, 1, 1)
|
||||||
|
|
||||||
|
self.selectedTree = DataTreeWidget(self.selInfoWidget)
|
||||||
|
__qtreewidgetitem = QTreeWidgetItem()
|
||||||
|
__qtreewidgetitem.setText(0, u"1");
|
||||||
|
self.selectedTree.setHeaderItem(__qtreewidgetitem)
|
||||||
|
self.selectedTree.setObjectName(u"selectedTree")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.selectedTree, 1, 0, 1, 2)
|
||||||
|
|
||||||
|
self.hoverText = QTextEdit(Form)
|
||||||
|
self.hoverText.setObjectName(u"hoverText")
|
||||||
|
self.hoverText.setGeometry(QRect(0, 240, 521, 81))
|
||||||
|
self.view = FlowchartGraphicsView(Form)
|
||||||
|
self.view.setObjectName(u"view")
|
||||||
|
self.view.setGeometry(QRect(0, 0, 256, 192))
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.selDescLabel.setText("")
|
||||||
|
self.selNameLabel.setText("")
|
||||||
|
# retranslateUi
|
||||||
|
|
254
pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyside6.py
Normal file
254
pyqtgraph/graphicsItems/PlotItem/plotConfigTemplate_pyside6.py
Normal file
@ -0,0 +1,254 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'plotConfigTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(481, 840)
|
||||||
|
self.averageGroup = QGroupBox(Form)
|
||||||
|
self.averageGroup.setObjectName(u"averageGroup")
|
||||||
|
self.averageGroup.setGeometry(QRect(0, 640, 242, 182))
|
||||||
|
self.averageGroup.setCheckable(True)
|
||||||
|
self.averageGroup.setChecked(False)
|
||||||
|
self.gridLayout_5 = QGridLayout(self.averageGroup)
|
||||||
|
self.gridLayout_5.setSpacing(0)
|
||||||
|
self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout_5.setObjectName(u"gridLayout_5")
|
||||||
|
self.avgParamList = QListWidget(self.averageGroup)
|
||||||
|
self.avgParamList.setObjectName(u"avgParamList")
|
||||||
|
|
||||||
|
self.gridLayout_5.addWidget(self.avgParamList, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.decimateGroup = QFrame(Form)
|
||||||
|
self.decimateGroup.setObjectName(u"decimateGroup")
|
||||||
|
self.decimateGroup.setGeometry(QRect(10, 140, 191, 171))
|
||||||
|
self.gridLayout_4 = QGridLayout(self.decimateGroup)
|
||||||
|
self.gridLayout_4.setSpacing(0)
|
||||||
|
self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout_4.setObjectName(u"gridLayout_4")
|
||||||
|
self.clipToViewCheck = QCheckBox(self.decimateGroup)
|
||||||
|
self.clipToViewCheck.setObjectName(u"clipToViewCheck")
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.clipToViewCheck, 7, 0, 1, 3)
|
||||||
|
|
||||||
|
self.maxTracesCheck = QCheckBox(self.decimateGroup)
|
||||||
|
self.maxTracesCheck.setObjectName(u"maxTracesCheck")
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.maxTracesCheck, 8, 0, 1, 2)
|
||||||
|
|
||||||
|
self.downsampleCheck = QCheckBox(self.decimateGroup)
|
||||||
|
self.downsampleCheck.setObjectName(u"downsampleCheck")
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.downsampleCheck, 0, 0, 1, 3)
|
||||||
|
|
||||||
|
self.peakRadio = QRadioButton(self.decimateGroup)
|
||||||
|
self.peakRadio.setObjectName(u"peakRadio")
|
||||||
|
self.peakRadio.setChecked(True)
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.peakRadio, 6, 1, 1, 2)
|
||||||
|
|
||||||
|
self.maxTracesSpin = QSpinBox(self.decimateGroup)
|
||||||
|
self.maxTracesSpin.setObjectName(u"maxTracesSpin")
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.maxTracesSpin, 8, 2, 1, 1)
|
||||||
|
|
||||||
|
self.forgetTracesCheck = QCheckBox(self.decimateGroup)
|
||||||
|
self.forgetTracesCheck.setObjectName(u"forgetTracesCheck")
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.forgetTracesCheck, 9, 0, 1, 3)
|
||||||
|
|
||||||
|
self.meanRadio = QRadioButton(self.decimateGroup)
|
||||||
|
self.meanRadio.setObjectName(u"meanRadio")
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.meanRadio, 3, 1, 1, 2)
|
||||||
|
|
||||||
|
self.subsampleRadio = QRadioButton(self.decimateGroup)
|
||||||
|
self.subsampleRadio.setObjectName(u"subsampleRadio")
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.subsampleRadio, 2, 1, 1, 2)
|
||||||
|
|
||||||
|
self.autoDownsampleCheck = QCheckBox(self.decimateGroup)
|
||||||
|
self.autoDownsampleCheck.setObjectName(u"autoDownsampleCheck")
|
||||||
|
self.autoDownsampleCheck.setChecked(True)
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.autoDownsampleCheck, 1, 2, 1, 1)
|
||||||
|
|
||||||
|
self.horizontalSpacer = QSpacerItem(30, 20, QSizePolicy.Maximum, QSizePolicy.Minimum)
|
||||||
|
|
||||||
|
self.gridLayout_4.addItem(self.horizontalSpacer, 2, 0, 1, 1)
|
||||||
|
|
||||||
|
self.downsampleSpin = QSpinBox(self.decimateGroup)
|
||||||
|
self.downsampleSpin.setObjectName(u"downsampleSpin")
|
||||||
|
self.downsampleSpin.setMinimum(1)
|
||||||
|
self.downsampleSpin.setMaximum(100000)
|
||||||
|
self.downsampleSpin.setValue(1)
|
||||||
|
|
||||||
|
self.gridLayout_4.addWidget(self.downsampleSpin, 1, 1, 1, 1)
|
||||||
|
|
||||||
|
self.transformGroup = QFrame(Form)
|
||||||
|
self.transformGroup.setObjectName(u"transformGroup")
|
||||||
|
self.transformGroup.setGeometry(QRect(10, 10, 171, 101))
|
||||||
|
self.gridLayout = QGridLayout(self.transformGroup)
|
||||||
|
self.gridLayout.setSpacing(0)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.logYCheck = QCheckBox(self.transformGroup)
|
||||||
|
self.logYCheck.setObjectName(u"logYCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.logYCheck, 2, 0, 1, 1)
|
||||||
|
|
||||||
|
self.logXCheck = QCheckBox(self.transformGroup)
|
||||||
|
self.logXCheck.setObjectName(u"logXCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.logXCheck, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
self.fftCheck = QCheckBox(self.transformGroup)
|
||||||
|
self.fftCheck.setObjectName(u"fftCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.fftCheck, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.derivativeCheck = QCheckBox(self.transformGroup)
|
||||||
|
self.derivativeCheck.setObjectName(u"derivativeCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.derivativeCheck, 3, 0, 1, 1)
|
||||||
|
|
||||||
|
self.phasemapCheck = QCheckBox(self.transformGroup)
|
||||||
|
self.phasemapCheck.setObjectName(u"phasemapCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.phasemapCheck, 4, 0, 1, 1)
|
||||||
|
|
||||||
|
self.pointsGroup = QGroupBox(Form)
|
||||||
|
self.pointsGroup.setObjectName(u"pointsGroup")
|
||||||
|
self.pointsGroup.setGeometry(QRect(10, 550, 234, 58))
|
||||||
|
self.pointsGroup.setCheckable(True)
|
||||||
|
self.verticalLayout_5 = QVBoxLayout(self.pointsGroup)
|
||||||
|
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
|
||||||
|
self.autoPointsCheck = QCheckBox(self.pointsGroup)
|
||||||
|
self.autoPointsCheck.setObjectName(u"autoPointsCheck")
|
||||||
|
self.autoPointsCheck.setChecked(True)
|
||||||
|
|
||||||
|
self.verticalLayout_5.addWidget(self.autoPointsCheck)
|
||||||
|
|
||||||
|
self.gridGroup = QFrame(Form)
|
||||||
|
self.gridGroup.setObjectName(u"gridGroup")
|
||||||
|
self.gridGroup.setGeometry(QRect(10, 460, 221, 81))
|
||||||
|
self.gridLayout_2 = QGridLayout(self.gridGroup)
|
||||||
|
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
||||||
|
self.xGridCheck = QCheckBox(self.gridGroup)
|
||||||
|
self.xGridCheck.setObjectName(u"xGridCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.xGridCheck, 0, 0, 1, 2)
|
||||||
|
|
||||||
|
self.yGridCheck = QCheckBox(self.gridGroup)
|
||||||
|
self.yGridCheck.setObjectName(u"yGridCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.yGridCheck, 1, 0, 1, 2)
|
||||||
|
|
||||||
|
self.gridAlphaSlider = QSlider(self.gridGroup)
|
||||||
|
self.gridAlphaSlider.setObjectName(u"gridAlphaSlider")
|
||||||
|
self.gridAlphaSlider.setMaximum(255)
|
||||||
|
self.gridAlphaSlider.setValue(128)
|
||||||
|
self.gridAlphaSlider.setOrientation(Qt.Horizontal)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.gridAlphaSlider, 2, 1, 1, 1)
|
||||||
|
|
||||||
|
self.label = QLabel(self.gridGroup)
|
||||||
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1)
|
||||||
|
|
||||||
|
self.alphaGroup = QGroupBox(Form)
|
||||||
|
self.alphaGroup.setObjectName(u"alphaGroup")
|
||||||
|
self.alphaGroup.setGeometry(QRect(10, 390, 234, 60))
|
||||||
|
self.alphaGroup.setCheckable(True)
|
||||||
|
self.horizontalLayout = QHBoxLayout(self.alphaGroup)
|
||||||
|
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||||
|
self.autoAlphaCheck = QCheckBox(self.alphaGroup)
|
||||||
|
self.autoAlphaCheck.setObjectName(u"autoAlphaCheck")
|
||||||
|
self.autoAlphaCheck.setChecked(False)
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.autoAlphaCheck)
|
||||||
|
|
||||||
|
self.alphaSlider = QSlider(self.alphaGroup)
|
||||||
|
self.alphaSlider.setObjectName(u"alphaSlider")
|
||||||
|
self.alphaSlider.setMaximum(1000)
|
||||||
|
self.alphaSlider.setValue(1000)
|
||||||
|
self.alphaSlider.setOrientation(Qt.Horizontal)
|
||||||
|
|
||||||
|
self.horizontalLayout.addWidget(self.alphaSlider)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.averageGroup.setToolTip(QCoreApplication.translate("Form", u"Display averages of the curves displayed in this plot. The parameter list allows you to choose parameters to average over (if any are available).", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.averageGroup.setTitle(QCoreApplication.translate("Form", u"Average", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.clipToViewCheck.setToolTip(QCoreApplication.translate("Form", u"Plot only the portion of each curve that is visible. This assumes X values are uniformly spaced.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.clipToViewCheck.setText(QCoreApplication.translate("Form", u"Clip to View", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.maxTracesCheck.setToolTip(QCoreApplication.translate("Form", u"If multiple curves are displayed in this plot, check this box to limit the number of traces that are displayed.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.maxTracesCheck.setText(QCoreApplication.translate("Form", u"Max Traces:", None))
|
||||||
|
self.downsampleCheck.setText(QCoreApplication.translate("Form", u"Downsample", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.peakRadio.setToolTip(QCoreApplication.translate("Form", u"Downsample by drawing a saw wave that follows the min and max of the original data. This method produces the best visual representation of the data but is slower.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.peakRadio.setText(QCoreApplication.translate("Form", u"Peak", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.maxTracesSpin.setToolTip(QCoreApplication.translate("Form", u"If multiple curves are displayed in this plot, check \"Max Traces\" and set this value to limit the number of traces that are displayed.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.forgetTracesCheck.setToolTip(QCoreApplication.translate("Form", u"If MaxTraces is checked, remove curves from memory after they are hidden (saves memory, but traces can not be un-hidden).", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.forgetTracesCheck.setText(QCoreApplication.translate("Form", u"Forget hidden traces", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.meanRadio.setToolTip(QCoreApplication.translate("Form", u"Downsample by taking the mean of N samples.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.meanRadio.setText(QCoreApplication.translate("Form", u"Mean", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.subsampleRadio.setToolTip(QCoreApplication.translate("Form", u"Downsample by taking the first of N samples. This method is fastest and least accurate.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.subsampleRadio.setText(QCoreApplication.translate("Form", u"Subsample", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.autoDownsampleCheck.setToolTip(QCoreApplication.translate("Form", u"Automatically downsample data based on the visible range. This assumes X values are uniformly spaced.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.autoDownsampleCheck.setText(QCoreApplication.translate("Form", u"Auto", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.downsampleSpin.setToolTip(QCoreApplication.translate("Form", u"Downsample data before plotting. (plot every Nth sample)", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.downsampleSpin.setSuffix(QCoreApplication.translate("Form", u"x", None))
|
||||||
|
self.logYCheck.setText(QCoreApplication.translate("Form", u"Log Y", None))
|
||||||
|
self.logXCheck.setText(QCoreApplication.translate("Form", u"Log X", None))
|
||||||
|
self.fftCheck.setText(QCoreApplication.translate("Form", u"Power Spectrum (FFT)", None))
|
||||||
|
self.derivativeCheck.setText(QCoreApplication.translate("Form", u"dy/dx", None))
|
||||||
|
self.phasemapCheck.setText(QCoreApplication.translate("Form", u"Y vs. Y'", None))
|
||||||
|
self.pointsGroup.setTitle(QCoreApplication.translate("Form", u"Points", None))
|
||||||
|
self.autoPointsCheck.setText(QCoreApplication.translate("Form", u"Auto", None))
|
||||||
|
self.xGridCheck.setText(QCoreApplication.translate("Form", u"Show X Grid", None))
|
||||||
|
self.yGridCheck.setText(QCoreApplication.translate("Form", u"Show Y Grid", None))
|
||||||
|
self.label.setText(QCoreApplication.translate("Form", u"Opacity", None))
|
||||||
|
self.alphaGroup.setTitle(QCoreApplication.translate("Form", u"Alpha", None))
|
||||||
|
self.autoAlphaCheck.setText(QCoreApplication.translate("Form", u"Auto", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
138
pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyside6.py
Normal file
138
pyqtgraph/graphicsItems/ViewBox/axisCtrlTemplate_pyside6.py
Normal file
@ -0,0 +1,138 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'axisCtrlTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(186, 154)
|
||||||
|
Form.setMaximumSize(QSize(200, 16777215))
|
||||||
|
self.gridLayout = QGridLayout(Form)
|
||||||
|
self.gridLayout.setSpacing(0)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.label = QLabel(Form)
|
||||||
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.label, 7, 0, 1, 2)
|
||||||
|
|
||||||
|
self.linkCombo = QComboBox(Form)
|
||||||
|
self.linkCombo.setObjectName(u"linkCombo")
|
||||||
|
self.linkCombo.setSizeAdjustPolicy(QComboBox.AdjustToContents)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.linkCombo, 7, 2, 1, 2)
|
||||||
|
|
||||||
|
self.autoPercentSpin = QSpinBox(Form)
|
||||||
|
self.autoPercentSpin.setObjectName(u"autoPercentSpin")
|
||||||
|
self.autoPercentSpin.setEnabled(True)
|
||||||
|
self.autoPercentSpin.setMinimum(1)
|
||||||
|
self.autoPercentSpin.setMaximum(100)
|
||||||
|
self.autoPercentSpin.setSingleStep(1)
|
||||||
|
self.autoPercentSpin.setValue(100)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.autoPercentSpin, 2, 2, 1, 2)
|
||||||
|
|
||||||
|
self.autoRadio = QRadioButton(Form)
|
||||||
|
self.autoRadio.setObjectName(u"autoRadio")
|
||||||
|
self.autoRadio.setChecked(True)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.autoRadio, 2, 0, 1, 2)
|
||||||
|
|
||||||
|
self.manualRadio = QRadioButton(Form)
|
||||||
|
self.manualRadio.setObjectName(u"manualRadio")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.manualRadio, 1, 0, 1, 2)
|
||||||
|
|
||||||
|
self.minText = QLineEdit(Form)
|
||||||
|
self.minText.setObjectName(u"minText")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.minText, 1, 2, 1, 1)
|
||||||
|
|
||||||
|
self.maxText = QLineEdit(Form)
|
||||||
|
self.maxText.setObjectName(u"maxText")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.maxText, 1, 3, 1, 1)
|
||||||
|
|
||||||
|
self.invertCheck = QCheckBox(Form)
|
||||||
|
self.invertCheck.setObjectName(u"invertCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.invertCheck, 5, 0, 1, 4)
|
||||||
|
|
||||||
|
self.mouseCheck = QCheckBox(Form)
|
||||||
|
self.mouseCheck.setObjectName(u"mouseCheck")
|
||||||
|
self.mouseCheck.setChecked(True)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.mouseCheck, 6, 0, 1, 4)
|
||||||
|
|
||||||
|
self.visibleOnlyCheck = QCheckBox(Form)
|
||||||
|
self.visibleOnlyCheck.setObjectName(u"visibleOnlyCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.visibleOnlyCheck, 3, 2, 1, 2)
|
||||||
|
|
||||||
|
self.autoPanCheck = QCheckBox(Form)
|
||||||
|
self.autoPanCheck.setObjectName(u"autoPanCheck")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.autoPanCheck, 4, 2, 1, 2)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.label.setText(QCoreApplication.translate("Form", u"Link Axis:", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.linkCombo.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>Links this axis with another view. When linked, both views will display the same data range.</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.autoPercentSpin.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>Percent of data to be visible when auto-scaling. It may be useful to decrease this value for data with spiky noise.</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.autoPercentSpin.setSuffix(QCoreApplication.translate("Form", u"%", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.autoRadio.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>Automatically resize this axis whenever the displayed data is changed.</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.autoRadio.setText(QCoreApplication.translate("Form", u"Auto", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.manualRadio.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>Set the range for this axis manually. This disables automatic scaling. </p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.manualRadio.setText(QCoreApplication.translate("Form", u"Manual", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.minText.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>Minimum value to display for this axis.</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.minText.setText(QCoreApplication.translate("Form", u"0", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.maxText.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>Maximum value to display for this axis.</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.maxText.setText(QCoreApplication.translate("Form", u"0", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.invertCheck.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>Inverts the display of this axis. (+y points downward instead of upward)</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.invertCheck.setText(QCoreApplication.translate("Form", u"Invert Axis", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.mouseCheck.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>Enables mouse interaction (panning, scaling) for this axis.</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.mouseCheck.setText(QCoreApplication.translate("Form", u"Mouse Enabled", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.visibleOnlyCheck.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>When checked, the axis will only auto-scale to data that is visible along the orthogonal axis.</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.visibleOnlyCheck.setText(QCoreApplication.translate("Form", u"Visible Data Only", None))
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.autoPanCheck.setToolTip(QCoreApplication.translate("Form", u"<html><head/><body><p>When checked, the axis will automatically pan to center on the current data, but the scale along this axis will not change.</p></body></html>", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.autoPanCheck.setText(QCoreApplication.translate("Form", u"Auto Pan Only", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
197
pyqtgraph/imageview/ImageViewTemplate_pyside6.py
Normal file
197
pyqtgraph/imageview/ImageViewTemplate_pyside6.py
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'ImageViewTemplate.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.0.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import *
|
||||||
|
from PySide6.QtGui import *
|
||||||
|
from PySide6.QtWidgets import *
|
||||||
|
|
||||||
|
from ..widgets.PlotWidget import PlotWidget
|
||||||
|
from ..widgets.GraphicsView import GraphicsView
|
||||||
|
from ..widgets.HistogramLUTWidget import HistogramLUTWidget
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
|
Form.resize(726, 588)
|
||||||
|
self.gridLayout_3 = QGridLayout(Form)
|
||||||
|
self.gridLayout_3.setSpacing(0)
|
||||||
|
self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout_3.setObjectName(u"gridLayout_3")
|
||||||
|
self.splitter = QSplitter(Form)
|
||||||
|
self.splitter.setObjectName(u"splitter")
|
||||||
|
self.splitter.setOrientation(Qt.Vertical)
|
||||||
|
self.layoutWidget = QWidget(self.splitter)
|
||||||
|
self.layoutWidget.setObjectName(u"layoutWidget")
|
||||||
|
self.gridLayout = QGridLayout(self.layoutWidget)
|
||||||
|
self.gridLayout.setSpacing(0)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.graphicsView = GraphicsView(self.layoutWidget)
|
||||||
|
self.graphicsView.setObjectName(u"graphicsView")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.graphicsView, 0, 0, 2, 1)
|
||||||
|
|
||||||
|
self.histogram = HistogramLUTWidget(self.layoutWidget)
|
||||||
|
self.histogram.setObjectName(u"histogram")
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.histogram, 0, 1, 1, 2)
|
||||||
|
|
||||||
|
self.roiBtn = QPushButton(self.layoutWidget)
|
||||||
|
self.roiBtn.setObjectName(u"roiBtn")
|
||||||
|
sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(1)
|
||||||
|
sizePolicy.setHeightForWidth(self.roiBtn.sizePolicy().hasHeightForWidth())
|
||||||
|
self.roiBtn.setSizePolicy(sizePolicy)
|
||||||
|
self.roiBtn.setCheckable(True)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.roiBtn, 1, 1, 1, 1)
|
||||||
|
|
||||||
|
self.menuBtn = QPushButton(self.layoutWidget)
|
||||||
|
self.menuBtn.setObjectName(u"menuBtn")
|
||||||
|
sizePolicy.setHeightForWidth(self.menuBtn.sizePolicy().hasHeightForWidth())
|
||||||
|
self.menuBtn.setSizePolicy(sizePolicy)
|
||||||
|
|
||||||
|
self.gridLayout.addWidget(self.menuBtn, 1, 2, 1, 1)
|
||||||
|
|
||||||
|
self.splitter.addWidget(self.layoutWidget)
|
||||||
|
self.roiPlot = PlotWidget(self.splitter)
|
||||||
|
self.roiPlot.setObjectName(u"roiPlot")
|
||||||
|
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
|
||||||
|
sizePolicy1.setHorizontalStretch(0)
|
||||||
|
sizePolicy1.setVerticalStretch(0)
|
||||||
|
sizePolicy1.setHeightForWidth(self.roiPlot.sizePolicy().hasHeightForWidth())
|
||||||
|
self.roiPlot.setSizePolicy(sizePolicy1)
|
||||||
|
self.roiPlot.setMinimumSize(QSize(0, 40))
|
||||||
|
self.splitter.addWidget(self.roiPlot)
|
||||||
|
|
||||||
|
self.gridLayout_3.addWidget(self.splitter, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.normGroup = QGroupBox(Form)
|
||||||
|
self.normGroup.setObjectName(u"normGroup")
|
||||||
|
self.gridLayout_2 = QGridLayout(self.normGroup)
|
||||||
|
self.gridLayout_2.setSpacing(0)
|
||||||
|
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
||||||
|
self.normSubtractRadio = QRadioButton(self.normGroup)
|
||||||
|
self.normSubtractRadio.setObjectName(u"normSubtractRadio")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normSubtractRadio, 0, 2, 1, 1)
|
||||||
|
|
||||||
|
self.normDivideRadio = QRadioButton(self.normGroup)
|
||||||
|
self.normDivideRadio.setObjectName(u"normDivideRadio")
|
||||||
|
self.normDivideRadio.setChecked(False)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normDivideRadio, 0, 1, 1, 1)
|
||||||
|
|
||||||
|
self.label_5 = QLabel(self.normGroup)
|
||||||
|
self.label_5.setObjectName(u"label_5")
|
||||||
|
font = QFont()
|
||||||
|
font.setBold(True)
|
||||||
|
self.label_5.setFont(font)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.label_3 = QLabel(self.normGroup)
|
||||||
|
self.label_3.setObjectName(u"label_3")
|
||||||
|
self.label_3.setFont(font)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
self.label_4 = QLabel(self.normGroup)
|
||||||
|
self.label_4.setObjectName(u"label_4")
|
||||||
|
self.label_4.setFont(font)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1)
|
||||||
|
|
||||||
|
self.normROICheck = QCheckBox(self.normGroup)
|
||||||
|
self.normROICheck.setObjectName(u"normROICheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normROICheck, 1, 1, 1, 1)
|
||||||
|
|
||||||
|
self.normXBlurSpin = QDoubleSpinBox(self.normGroup)
|
||||||
|
self.normXBlurSpin.setObjectName(u"normXBlurSpin")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normXBlurSpin, 2, 2, 1, 1)
|
||||||
|
|
||||||
|
self.label_8 = QLabel(self.normGroup)
|
||||||
|
self.label_8.setObjectName(u"label_8")
|
||||||
|
self.label_8.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label_8, 2, 1, 1, 1)
|
||||||
|
|
||||||
|
self.label_9 = QLabel(self.normGroup)
|
||||||
|
self.label_9.setObjectName(u"label_9")
|
||||||
|
self.label_9.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label_9, 2, 3, 1, 1)
|
||||||
|
|
||||||
|
self.normYBlurSpin = QDoubleSpinBox(self.normGroup)
|
||||||
|
self.normYBlurSpin.setObjectName(u"normYBlurSpin")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normYBlurSpin, 2, 4, 1, 1)
|
||||||
|
|
||||||
|
self.label_10 = QLabel(self.normGroup)
|
||||||
|
self.label_10.setObjectName(u"label_10")
|
||||||
|
self.label_10.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label_10, 2, 5, 1, 1)
|
||||||
|
|
||||||
|
self.normOffRadio = QRadioButton(self.normGroup)
|
||||||
|
self.normOffRadio.setObjectName(u"normOffRadio")
|
||||||
|
self.normOffRadio.setChecked(True)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normOffRadio, 0, 3, 1, 1)
|
||||||
|
|
||||||
|
self.normTimeRangeCheck = QCheckBox(self.normGroup)
|
||||||
|
self.normTimeRangeCheck.setObjectName(u"normTimeRangeCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normTimeRangeCheck, 1, 3, 1, 1)
|
||||||
|
|
||||||
|
self.normFrameCheck = QCheckBox(self.normGroup)
|
||||||
|
self.normFrameCheck.setObjectName(u"normFrameCheck")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normFrameCheck, 1, 2, 1, 1)
|
||||||
|
|
||||||
|
self.normTBlurSpin = QDoubleSpinBox(self.normGroup)
|
||||||
|
self.normTBlurSpin.setObjectName(u"normTBlurSpin")
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.normTBlurSpin, 2, 6, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.gridLayout_3.addWidget(self.normGroup, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"PyQtGraph", None))
|
||||||
|
self.roiBtn.setText(QCoreApplication.translate("Form", u"ROI", None))
|
||||||
|
self.menuBtn.setText(QCoreApplication.translate("Form", u"Menu", None))
|
||||||
|
self.normGroup.setTitle(QCoreApplication.translate("Form", u"Normalization", None))
|
||||||
|
self.normSubtractRadio.setText(QCoreApplication.translate("Form", u"Subtract", None))
|
||||||
|
self.normDivideRadio.setText(QCoreApplication.translate("Form", u"Divide", None))
|
||||||
|
self.label_5.setText(QCoreApplication.translate("Form", u"Operation:", None))
|
||||||
|
self.label_3.setText(QCoreApplication.translate("Form", u"Mean:", None))
|
||||||
|
self.label_4.setText(QCoreApplication.translate("Form", u"Blur:", None))
|
||||||
|
self.normROICheck.setText(QCoreApplication.translate("Form", u"ROI", None))
|
||||||
|
self.label_8.setText(QCoreApplication.translate("Form", u"X", None))
|
||||||
|
self.label_9.setText(QCoreApplication.translate("Form", u"Y", None))
|
||||||
|
self.label_10.setText(QCoreApplication.translate("Form", u"T", None))
|
||||||
|
self.normOffRadio.setText(QCoreApplication.translate("Form", u"Off", None))
|
||||||
|
self.normTimeRangeCheck.setText(QCoreApplication.translate("Form", u"Time range", None))
|
||||||
|
self.normFrameCheck.setText(QCoreApplication.translate("Form", u"Frame", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user