ProjectPyramid/Ui_FormSelectionDialog.py

Mon, 28 Oct 2024 17:35:47 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 28 Oct 2024 17:35:47 +0100
branch
eric7
changeset 169
0405f4f83719
permissions
-rw-r--r--

- changed to the new style header
- ensured proper parent relationship of modal dialogs
- included compiled form files

# Form implementation generated from reading ui file 'ProjectPyramid/FormSelectionDialog.ui'
#
# Created by: PyQt6 UI code generator 6.7.1
#
# 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.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_FormSelectionDialog(object):
    def setupUi(self, FormSelectionDialog):
        FormSelectionDialog.setObjectName("FormSelectionDialog")
        FormSelectionDialog.resize(600, 450)
        FormSelectionDialog.setSizeGripEnabled(True)
        self.gridLayout = QtWidgets.QGridLayout(FormSelectionDialog)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(parent=FormSelectionDialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.typeCombo = QtWidgets.QComboBox(parent=FormSelectionDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.typeCombo.sizePolicy().hasHeightForWidth())
        self.typeCombo.setSizePolicy(sizePolicy)
        self.typeCombo.setObjectName("typeCombo")
        self.gridLayout.addWidget(self.typeCombo, 0, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(parent=FormSelectionDialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.preview = QtWidgets.QTextEdit(parent=FormSelectionDialog)
        self.preview.setReadOnly(True)
        self.preview.setObjectName("preview")
        self.gridLayout.addWidget(self.preview, 2, 0, 1, 2)
        self.buttonBox = QtWidgets.QDialogButtonBox(parent=FormSelectionDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 2)
        self.label.setBuddy(self.typeCombo)

        self.retranslateUi(FormSelectionDialog)
        self.buttonBox.accepted.connect(FormSelectionDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(FormSelectionDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(FormSelectionDialog)
        FormSelectionDialog.setTabOrder(self.typeCombo, self.preview)
        FormSelectionDialog.setTabOrder(self.preview, self.buttonBox)

    def retranslateUi(self, FormSelectionDialog):
        _translate = QtCore.QCoreApplication.translate
        FormSelectionDialog.setWindowTitle(_translate("FormSelectionDialog", "Template Type Selection"))
        self.label.setText(_translate("FormSelectionDialog", "Template &Type:"))
        self.typeCombo.setToolTip(_translate("FormSelectionDialog", "Select the template type"))
        self.label_2.setText(_translate("FormSelectionDialog", "Preview:"))
        self.preview.setToolTip(_translate("FormSelectionDialog", "Shows the text of the selected template"))

eric ide

mercurial