specify that ParameterTree needs 2 columns in .ui
This commit is contained in:
parent
a9161e0794
commit
e3372fddc5
@ -62,6 +62,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" colspan="3">
|
<item row="5" column="0" colspan="3">
|
||||||
<widget class="ParameterTree" name="paramTree">
|
<widget class="ParameterTree" name="paramTree">
|
||||||
|
<property name="columnCount">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
<attribute name="headerVisible">
|
<attribute name="headerVisible">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Form implementation generated from reading ui file './pyqtgraph/GraphicsScene/exportDialogTemplate.ui'
|
# Form implementation generated from reading ui file '.\exportDialogTemplate.ui'
|
||||||
#
|
#
|
||||||
# Created: Wed Mar 26 15:09:29 2014
|
# Created by: PyQt5 UI code generator 5.15.4
|
||||||
# by: PyQt5 UI code generator 5.0.1
|
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
class Ui_Form(object):
|
class Ui_Form(object):
|
||||||
def setupUi(self, Form):
|
def setupUi(self, Form):
|
||||||
Form.setObjectName("Form")
|
Form.setObjectName("Form")
|
||||||
@ -37,6 +39,7 @@ class Ui_Form(object):
|
|||||||
self.closeBtn.setObjectName("closeBtn")
|
self.closeBtn.setObjectName("closeBtn")
|
||||||
self.gridLayout.addWidget(self.closeBtn, 6, 2, 1, 1)
|
self.gridLayout.addWidget(self.closeBtn, 6, 2, 1, 1)
|
||||||
self.paramTree = ParameterTree(Form)
|
self.paramTree = ParameterTree(Form)
|
||||||
|
self.paramTree.setColumnCount(2)
|
||||||
self.paramTree.setObjectName("paramTree")
|
self.paramTree.setObjectName("paramTree")
|
||||||
self.paramTree.headerItem().setText(0, "1")
|
self.paramTree.headerItem().setText(0, "1")
|
||||||
self.paramTree.header().setVisible(False)
|
self.paramTree.header().setVisible(False)
|
||||||
@ -60,5 +63,4 @@ class Ui_Form(object):
|
|||||||
self.closeBtn.setText(_translate("Form", "Close"))
|
self.closeBtn.setText(_translate("Form", "Close"))
|
||||||
self.label_3.setText(_translate("Form", "Export options"))
|
self.label_3.setText(_translate("Form", "Export options"))
|
||||||
self.copyBtn.setText(_translate("Form", "Copy"))
|
self.copyBtn.setText(_translate("Form", "Copy"))
|
||||||
|
|
||||||
from ..parametertree import ParameterTree
|
from ..parametertree import ParameterTree
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Form implementation generated from reading ui file 'pyqtgraph\GraphicsScene\exportDialogTemplate.ui'
|
# Form implementation generated from reading ui file '.\exportDialogTemplate.ui'
|
||||||
#
|
#
|
||||||
# Created by: PyQt6 UI code generator 6.0.0
|
# Created by: PyQt6 UI code generator 6.0.3
|
||||||
#
|
#
|
||||||
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
# run again. Do not edit this file unless you know what you are doing.
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
@ -37,6 +37,7 @@ class Ui_Form(object):
|
|||||||
self.closeBtn.setObjectName("closeBtn")
|
self.closeBtn.setObjectName("closeBtn")
|
||||||
self.gridLayout.addWidget(self.closeBtn, 6, 2, 1, 1)
|
self.gridLayout.addWidget(self.closeBtn, 6, 2, 1, 1)
|
||||||
self.paramTree = ParameterTree(Form)
|
self.paramTree = ParameterTree(Form)
|
||||||
|
self.paramTree.setColumnCount(2)
|
||||||
self.paramTree.setObjectName("paramTree")
|
self.paramTree.setObjectName("paramTree")
|
||||||
self.paramTree.headerItem().setText(0, "1")
|
self.paramTree.headerItem().setText(0, "1")
|
||||||
self.paramTree.header().setVisible(False)
|
self.paramTree.header().setVisible(False)
|
||||||
|
@ -1,63 +1,95 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Form implementation generated from reading ui file 'exportDialogTemplate.ui'
|
################################################################################
|
||||||
#
|
## Form generated from reading UI file 'exportDialogTemplate.ui'
|
||||||
# Created: Sun Sep 18 19:19:58 2016
|
##
|
||||||
# by: pyside2-uic running on PySide2 2.0.0~alpha0
|
## Created by: Qt User Interface Compiler version 5.15.2
|
||||||
#
|
##
|
||||||
# WARNING! All changes made in this file will be lost!
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide2.QtCore import *
|
||||||
|
from PySide2.QtGui import *
|
||||||
|
from PySide2.QtWidgets import *
|
||||||
|
|
||||||
|
from ..parametertree import ParameterTree
|
||||||
|
|
||||||
from PySide2 import QtCore, QtGui, QtWidgets
|
|
||||||
|
|
||||||
class Ui_Form(object):
|
class Ui_Form(object):
|
||||||
def setupUi(self, Form):
|
def setupUi(self, Form):
|
||||||
Form.setObjectName("Form")
|
if not Form.objectName():
|
||||||
|
Form.setObjectName(u"Form")
|
||||||
Form.resize(241, 367)
|
Form.resize(241, 367)
|
||||||
self.gridLayout = QtWidgets.QGridLayout(Form)
|
self.gridLayout = QGridLayout(Form)
|
||||||
self.gridLayout.setSpacing(0)
|
self.gridLayout.setSpacing(0)
|
||||||
self.gridLayout.setObjectName("gridLayout")
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
self.label = QtWidgets.QLabel(Form)
|
self.label = QLabel(Form)
|
||||||
self.label.setObjectName("label")
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label, 0, 0, 1, 3)
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 3)
|
||||||
self.itemTree = QtWidgets.QTreeWidget(Form)
|
|
||||||
self.itemTree.setObjectName("itemTree")
|
self.itemTree = QTreeWidget(Form)
|
||||||
self.itemTree.headerItem().setText(0, "1")
|
__qtreewidgetitem = QTreeWidgetItem()
|
||||||
|
__qtreewidgetitem.setText(0, u"1");
|
||||||
|
self.itemTree.setHeaderItem(__qtreewidgetitem)
|
||||||
|
self.itemTree.setObjectName(u"itemTree")
|
||||||
self.itemTree.header().setVisible(False)
|
self.itemTree.header().setVisible(False)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.itemTree, 1, 0, 1, 3)
|
self.gridLayout.addWidget(self.itemTree, 1, 0, 1, 3)
|
||||||
self.label_2 = QtWidgets.QLabel(Form)
|
|
||||||
self.label_2.setObjectName("label_2")
|
self.label_2 = QLabel(Form)
|
||||||
|
self.label_2.setObjectName(u"label_2")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 3)
|
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 3)
|
||||||
self.formatList = QtWidgets.QListWidget(Form)
|
|
||||||
self.formatList.setObjectName("formatList")
|
self.formatList = QListWidget(Form)
|
||||||
|
self.formatList.setObjectName(u"formatList")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.formatList, 3, 0, 1, 3)
|
self.gridLayout.addWidget(self.formatList, 3, 0, 1, 3)
|
||||||
self.exportBtn = QtWidgets.QPushButton(Form)
|
|
||||||
self.exportBtn.setObjectName("exportBtn")
|
self.exportBtn = QPushButton(Form)
|
||||||
|
self.exportBtn.setObjectName(u"exportBtn")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.exportBtn, 6, 1, 1, 1)
|
self.gridLayout.addWidget(self.exportBtn, 6, 1, 1, 1)
|
||||||
self.closeBtn = QtWidgets.QPushButton(Form)
|
|
||||||
self.closeBtn.setObjectName("closeBtn")
|
self.closeBtn = QPushButton(Form)
|
||||||
|
self.closeBtn.setObjectName(u"closeBtn")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.closeBtn, 6, 2, 1, 1)
|
self.gridLayout.addWidget(self.closeBtn, 6, 2, 1, 1)
|
||||||
|
|
||||||
self.paramTree = ParameterTree(Form)
|
self.paramTree = ParameterTree(Form)
|
||||||
self.paramTree.setObjectName("paramTree")
|
__qtreewidgetitem1 = QTreeWidgetItem()
|
||||||
self.paramTree.headerItem().setText(0, "1")
|
__qtreewidgetitem1.setText(0, u"1");
|
||||||
|
self.paramTree.setHeaderItem(__qtreewidgetitem1)
|
||||||
|
self.paramTree.setObjectName(u"paramTree")
|
||||||
|
self.paramTree.setColumnCount(2)
|
||||||
self.paramTree.header().setVisible(False)
|
self.paramTree.header().setVisible(False)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.paramTree, 5, 0, 1, 3)
|
self.gridLayout.addWidget(self.paramTree, 5, 0, 1, 3)
|
||||||
self.label_3 = QtWidgets.QLabel(Form)
|
|
||||||
self.label_3.setObjectName("label_3")
|
self.label_3 = QLabel(Form)
|
||||||
|
self.label_3.setObjectName(u"label_3")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_3, 4, 0, 1, 3)
|
self.gridLayout.addWidget(self.label_3, 4, 0, 1, 3)
|
||||||
self.copyBtn = QtWidgets.QPushButton(Form)
|
|
||||||
self.copyBtn.setObjectName("copyBtn")
|
self.copyBtn = QPushButton(Form)
|
||||||
|
self.copyBtn.setObjectName(u"copyBtn")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.copyBtn, 6, 0, 1, 1)
|
self.gridLayout.addWidget(self.copyBtn, 6, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
self.retranslateUi(Form)
|
self.retranslateUi(Form)
|
||||||
QtCore.QMetaObject.connectSlotsByName(Form)
|
|
||||||
|
QMetaObject.connectSlotsByName(Form)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
def retranslateUi(self, Form):
|
def retranslateUi(self, Form):
|
||||||
Form.setWindowTitle(QtWidgets.QApplication.translate("Form", "Export", None, -1))
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"Export", None))
|
||||||
self.label.setText(QtWidgets.QApplication.translate("Form", "Item to export:", None, -1))
|
self.label.setText(QCoreApplication.translate("Form", u"Item to export:", None))
|
||||||
self.label_2.setText(QtWidgets.QApplication.translate("Form", "Export format", None, -1))
|
self.label_2.setText(QCoreApplication.translate("Form", u"Export format", None))
|
||||||
self.exportBtn.setText(QtWidgets.QApplication.translate("Form", "Export", None, -1))
|
self.exportBtn.setText(QCoreApplication.translate("Form", u"Export", None))
|
||||||
self.closeBtn.setText(QtWidgets.QApplication.translate("Form", "Close", None, -1))
|
self.closeBtn.setText(QCoreApplication.translate("Form", u"Close", None))
|
||||||
self.label_3.setText(QtWidgets.QApplication.translate("Form", "Export options", None, -1))
|
self.label_3.setText(QCoreApplication.translate("Form", u"Export options", None))
|
||||||
self.copyBtn.setText(QtWidgets.QApplication.translate("Form", "Copy", None, -1))
|
self.copyBtn.setText(QCoreApplication.translate("Form", u"Copy", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
||||||
from ..parametertree import ParameterTree
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
## Form generated from reading UI file 'exportDialogTemplate.ui'
|
## Form generated from reading UI file 'exportDialogTemplate.ui'
|
||||||
##
|
##
|
||||||
## Created by: Qt User Interface Compiler version 6.0.0
|
## Created by: Qt User Interface Compiler version 6.0.3
|
||||||
##
|
##
|
||||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -62,6 +62,7 @@ class Ui_Form(object):
|
|||||||
__qtreewidgetitem1.setText(0, u"1");
|
__qtreewidgetitem1.setText(0, u"1");
|
||||||
self.paramTree.setHeaderItem(__qtreewidgetitem1)
|
self.paramTree.setHeaderItem(__qtreewidgetitem1)
|
||||||
self.paramTree.setObjectName(u"paramTree")
|
self.paramTree.setObjectName(u"paramTree")
|
||||||
|
self.paramTree.setColumnCount(2)
|
||||||
self.paramTree.header().setVisible(False)
|
self.paramTree.header().setVisible(False)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.paramTree, 5, 0, 1, 3)
|
self.gridLayout.addWidget(self.paramTree, 5, 0, 1, 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user