|
1 # Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Project_Flask/ProjectFlask/FormSelectionDialog.ui' |
|
2 # |
|
3 # Created by: PyQt6 UI code generator 6.4.0 |
|
4 # |
|
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is |
|
6 # run again. Do not edit this file unless you know what you are doing. |
|
7 |
|
8 |
|
9 from PyQt6 import QtCore, QtGui, QtWidgets |
|
10 |
|
11 |
|
12 class Ui_FormSelectionDialog(object): |
|
13 def setupUi(self, FormSelectionDialog): |
|
14 FormSelectionDialog.setObjectName("FormSelectionDialog") |
|
15 FormSelectionDialog.resize(600, 450) |
|
16 FormSelectionDialog.setSizeGripEnabled(True) |
|
17 self.gridLayout = QtWidgets.QGridLayout(FormSelectionDialog) |
|
18 self.gridLayout.setObjectName("gridLayout") |
|
19 self.label = QtWidgets.QLabel(FormSelectionDialog) |
|
20 self.label.setObjectName("label") |
|
21 self.gridLayout.addWidget(self.label, 0, 0, 1, 1) |
|
22 self.typeCombo = QtWidgets.QComboBox(FormSelectionDialog) |
|
23 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) |
|
24 sizePolicy.setHorizontalStretch(0) |
|
25 sizePolicy.setVerticalStretch(0) |
|
26 sizePolicy.setHeightForWidth(self.typeCombo.sizePolicy().hasHeightForWidth()) |
|
27 self.typeCombo.setSizePolicy(sizePolicy) |
|
28 self.typeCombo.setObjectName("typeCombo") |
|
29 self.gridLayout.addWidget(self.typeCombo, 0, 1, 1, 1) |
|
30 self.label_2 = QtWidgets.QLabel(FormSelectionDialog) |
|
31 self.label_2.setObjectName("label_2") |
|
32 self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) |
|
33 self.buttonBox = QtWidgets.QDialogButtonBox(FormSelectionDialog) |
|
34 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) |
|
35 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) |
|
36 self.buttonBox.setObjectName("buttonBox") |
|
37 self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 2) |
|
38 self.preview = QtWidgets.QPlainTextEdit(FormSelectionDialog) |
|
39 font = QtGui.QFont() |
|
40 font.setFamily("Noto Sans Mono") |
|
41 self.preview.setFont(font) |
|
42 self.preview.setTabChangesFocus(True) |
|
43 self.preview.setLineWrapMode(QtWidgets.QPlainTextEdit.LineWrapMode.NoWrap) |
|
44 self.preview.setObjectName("preview") |
|
45 self.gridLayout.addWidget(self.preview, 2, 0, 1, 2) |
|
46 self.label.setBuddy(self.typeCombo) |
|
47 |
|
48 self.retranslateUi(FormSelectionDialog) |
|
49 self.buttonBox.accepted.connect(FormSelectionDialog.accept) # type: ignore |
|
50 self.buttonBox.rejected.connect(FormSelectionDialog.reject) # type: ignore |
|
51 QtCore.QMetaObject.connectSlotsByName(FormSelectionDialog) |
|
52 FormSelectionDialog.setTabOrder(self.typeCombo, self.preview) |
|
53 FormSelectionDialog.setTabOrder(self.preview, self.buttonBox) |
|
54 |
|
55 def retranslateUi(self, FormSelectionDialog): |
|
56 _translate = QtCore.QCoreApplication.translate |
|
57 FormSelectionDialog.setWindowTitle(_translate("FormSelectionDialog", "Template Type Selection")) |
|
58 self.label.setText(_translate("FormSelectionDialog", "Template &Type:")) |
|
59 self.typeCombo.setToolTip(_translate("FormSelectionDialog", "Select the template type")) |
|
60 self.label_2.setText(_translate("FormSelectionDialog", "Preview:")) |
|
61 self.preview.setToolTip(_translate("FormSelectionDialog", "Shows the text of the selected template")) |
|
62 |
|
63 |
|
64 if __name__ == "__main__": |
|
65 import sys |
|
66 app = QtWidgets.QApplication(sys.argv) |
|
67 FormSelectionDialog = QtWidgets.QDialog() |
|
68 ui = Ui_FormSelectionDialog() |
|
69 ui.setupUi(FormSelectionDialog) |
|
70 FormSelectionDialog.show() |
|
71 sys.exit(app.exec()) |