diff -r f39230b845e4 -r fcb5126077b1 ProjectFlask/Ui_FormSelectionDialog.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ProjectFlask/Ui_FormSelectionDialog.py Mon Oct 28 17:11:28 2024 +0100 @@ -0,0 +1,71 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Project_Flask/ProjectFlask/FormSelectionDialog.ui' +# +# Created by: PyQt6 UI code generator 6.4.0 +# +# 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(FormSelectionDialog) + self.label.setObjectName("label") + self.gridLayout.addWidget(self.label, 0, 0, 1, 1) + self.typeCombo = QtWidgets.QComboBox(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(FormSelectionDialog) + self.label_2.setObjectName("label_2") + self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) + self.buttonBox = QtWidgets.QDialogButtonBox(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.preview = QtWidgets.QPlainTextEdit(FormSelectionDialog) + font = QtGui.QFont() + font.setFamily("Noto Sans Mono") + self.preview.setFont(font) + self.preview.setTabChangesFocus(True) + self.preview.setLineWrapMode(QtWidgets.QPlainTextEdit.LineWrapMode.NoWrap) + self.preview.setObjectName("preview") + self.gridLayout.addWidget(self.preview, 2, 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")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + FormSelectionDialog = QtWidgets.QDialog() + ui = Ui_FormSelectionDialog() + ui.setupUi(FormSelectionDialog) + FormSelectionDialog.show() + sys.exit(app.exec())