1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
| ###############################################################################
## Form generated from reading UI file 'test_tableModel.ui'
##
## Created by: Qt User Interface Compiler version 6.5.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QFormLayout, QHBoxLayout, QHeaderView,
QLabel, QLineEdit, QMainWindow, QPushButton,
QSizePolicy, QSpacerItem, QSpinBox, QStatusBar,
QTableView, QVBoxLayout, QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(792, 400)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.layoutWidget = QWidget(self.centralwidget)
self.layoutWidget.setObjectName(u"layoutWidget")
self.layoutWidget.setGeometry(QRect(0, 18, 781, 341))
self.verticalLayout = QVBoxLayout(self.layoutWidget)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.tableView = QTableView(self.layoutWidget)
self.tableView.setObjectName(u"tableView")
self.tableView.setMinimumSize(QSize(500, 0))
self.horizontalLayout.addWidget(self.tableView)
self.formLayout = QFormLayout()
self.formLayout.setObjectName(u"formLayout")
self.label = QLabel(self.layoutWidget)
self.label.setObjectName(u"label")
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label)
self.lineEdit = QLineEdit(self.layoutWidget)
self.lineEdit.setObjectName(u"lineEdit")
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.lineEdit)
self.label_2 = QLabel(self.layoutWidget)
self.label_2.setObjectName(u"label_2")
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_2)
self.lineEdit_2 = QLineEdit(self.layoutWidget)
self.lineEdit_2.setObjectName(u"lineEdit_2")
self.formLayout.setWidget(3, QFormLayout.FieldRole, self.lineEdit_2)
self.label_3 = QLabel(self.layoutWidget)
self.label_3.setObjectName(u"label_3")
self.formLayout.setWidget(5, QFormLayout.LabelRole, self.label_3)
self.lineEdit_3 = QLineEdit(self.layoutWidget)
self.lineEdit_3.setObjectName(u"lineEdit_3")
self.formLayout.setWidget(5, QFormLayout.FieldRole, self.lineEdit_3)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.formLayout.setItem(2, QFormLayout.FieldRole, self.verticalSpacer)
self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.formLayout.setItem(4, QFormLayout.FieldRole, self.verticalSpacer_2)
self.verticalSpacer_3 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.formLayout.setItem(0, QFormLayout.FieldRole, self.verticalSpacer_3)
self.verticalSpacer_4 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.formLayout.setItem(6, QFormLayout.FieldRole, self.verticalSpacer_4)
self.label_4 = QLabel(self.layoutWidget)
self.label_4.setObjectName(u"label_4")
self.formLayout.setWidget(7, QFormLayout.LabelRole, self.label_4)
self.verticalSpacer_5 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.formLayout.setItem(8, QFormLayout.FieldRole, self.verticalSpacer_5)
self.spinBox = QSpinBox(self.layoutWidget)
self.spinBox.setObjectName(u"spinBox")
self.formLayout.setWidget(7, QFormLayout.FieldRole, self.spinBox)
self.horizontalLayout.addLayout(self.formLayout)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.pushButton_enregistrer = QPushButton(self.layoutWidget)
self.pushButton_enregistrer.setObjectName(u"pushButton_enregistrer")
self.horizontalLayout_2.addWidget(self.pushButton_enregistrer)
self.pushButton_supprimer = QPushButton(self.layoutWidget)
self.pushButton_supprimer.setObjectName(u"pushButton_supprimer")
self.horizontalLayout_2.addWidget(self.pushButton_supprimer)
self.pushButton_nouveau = QPushButton(self.layoutWidget)
self.pushButton_nouveau.setObjectName(u"pushButton_nouveau")
self.horizontalLayout_2.addWidget(self.pushButton_nouveau)
self.pushButton_annuler = QPushButton(self.layoutWidget)
self.pushButton_annuler.setObjectName(u"pushButton_annuler")
self.horizontalLayout_2.addWidget(self.pushButton_annuler)
self.verticalLayout.addLayout(self.horizontalLayout_2)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_2.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_3.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_4.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.pushButton_enregistrer.setText(QCoreApplication.translate("MainWindow", u"Enregistrer", None))
self.pushButton_supprimer.setText(QCoreApplication.translate("MainWindow", u"Supprimer", None))
self.pushButton_nouveau.setText(QCoreApplication.translate("MainWindow", u"Nouveau", None))
self.pushButton_annuler.setText(QCoreApplication.translate("MainWindow", u"Annuler", None))
# retranslateUi |
Partager