class Ui_FormScManuels(object): def setupUi(self, FormScManuels): FormScManuels.setObjectName(_fromUtf8("FormScManuels")) self.gridLayout = QtGui.QGridLayout(FormScManuels) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.labelTitre = QtGui.QLabel(FormScManuels) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.labelTitre.setFont(font) self.labelTitre.setAlignment(QtCore.Qt.AlignLeft) self.labelTitre.setObjectName(_fromUtf8("labelTitre")) self.gridLayout.addWidget(self.labelTitre, 0, 0, 1, 1) self.labelSsTitre = QtGui.QLabel(FormScManuels) self.labelSsTitre.setObjectName(_fromUtf8("labelSsTitre")) self.gridLayout.addWidget(self.labelSsTitre, 1, 0, 1, 2) self.tab_M1 = TabDF(FormScManuels) self.tab_M1.setFixedSize(QtCore.QSize(326, 370)) self.tab_M1.setAlternatingRowColors(True) self.tab_M1.setObjectName(_fromUtf8("tab_M1")) self.tab_M1.horizontalHeader().setDefaultSectionSize(70) self.gridLayout.addWidget(self.tab_M1, 3, 0, 1, 1) self.tab_M2 = TabDF(FormScManuels) self.tab_M2.setFixedSize(QtCore.QSize(224, 370)) self.tab_M2.setAlternatingRowColors(True) self.tab_M2.setObjectName(_fromUtf8("tab_M2")) self.tab_M2.horizontalHeader().setDefaultSectionSize(70) self.tab_M2.verticalHeader().setVisible(False) self.tab_M2.verticalHeader().setStretchLastSection(False) self.gridLayout.addWidget(self.tab_M2, 3, 1, 1, 1) self.label_M1 = QtGui.QLabel(FormScManuels) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_M1.setFont(font) self.label_M1.setAlignment(QtCore.Qt.AlignCenter) self.label_M1.setObjectName(_fromUtf8("label_M1")) self.gridLayout.addWidget(self.label_M1, 2, 0, 1, 1) self.label_M2 = QtGui.QLabel(FormScManuels) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_M2.setFont(font) self.label_M2.setAlignment(QtCore.Qt.AlignCenter) self.label_M2.setObjectName(_fromUtf8("label_M2")) self.gridLayout.addWidget(self.label_M2, 2, 1, 1, 1) self.label_M1.setBuddy(self.tab_M1) self.label_M2.setBuddy(self.tab_M2) self.hSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(self.hSpacer, 3, 2, 1, 1) self.vSpacer = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(self.vSpacer, 4, 0, 1, 1) self.retranslateUi(FormScManuels) QtCore.QMetaObject.connectSlotsByName(FormScManuels) FormScManuels.setTabOrder(self.tab_M1, self.tab_M2) def retranslateUi(self, FormScManuels): FormScManuels.setWindowTitle(_translate("FormScManuels", "Form", None)) self.labelTitre.setText( _translate("FormScManuels", u"Scénarios de pluie manuels", None)) self.labelSsTitre.setText( _translate( "FormScManuels", trim( u"""Entrer les cumuls de pluie journaliers (mm) pour les scénarios de pluie manuels éventuels. Jusqu'à 2 scénarios manuels. """), None)) self.label_M1.setText(_translate("FormScManuels", "Manuel 1", None)) self.label_M2.setText(_translate("FormScManuels", "Manuel 2", None))
class FormANA(QtGui.QFrame): u"""classe de formulaire avec les paramètres d'Analog + tableau de résultats """ def __init__(self, parent=None): QtGui.QFrame.__init__(self, parent) self.setObjectName(_fromUtf8("Form")) self.horizontalLayout = QtGui.QHBoxLayout(self) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) fixed = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) #1ère colonne : paramètres self.gpBoxParams = QtGui.QGroupBox(self) self.gpBoxParams.setSizePolicy(fixed) self.gpBoxParams.setFixedWidth(212) self.gpBoxParams.setFixedHeight(107) self.gpBoxParams.setObjectName(_fromUtf8("gpBoxParams")) self.gridLayout = QtGui.QGridLayout(self.gpBoxParams) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.labelDeb = QtGui.QLabel(self.gpBoxParams) self.labelDeb.setObjectName(_fromUtf8("labelDeb")) self.gridLayout.addWidget(self.labelDeb, 0, 0, 1, 1) self.editDeb = QtGui.QDoubleSpinBox(self.gpBoxParams) self.editDeb.setMaximum(1000) self.editDeb.setSuffix(u" mm") self.editDeb.setAlignment(QtCore.Qt.AlignCenter) self.editDeb.setObjectName(_fromUtf8("editDeb")) self.gridLayout.addWidget(self.editDeb, 0, 1, 1, 1) self.labelFin = QtGui.QLabel(self.gpBoxParams) self.labelFin.setObjectName(_fromUtf8("labelFin")) self.gridLayout.addWidget(self.labelFin, 1, 0, 1, 1) self.editFin = QtGui.QDoubleSpinBox(self.gpBoxParams) self.editFin.setMaximum(1000) self.editFin.setSuffix(u" mm") self.editFin.setAlignment(QtCore.Qt.AlignCenter) self.editFin.setObjectName(_fromUtf8("editFin")) self.gridLayout.addWidget(self.editFin, 1, 1, 1, 1) self.labelQ0 = QtGui.QLabel(self.gpBoxParams) self.labelQ0.setObjectName(_fromUtf8("labelQ0")) self.gridLayout.addWidget(self.labelQ0, 2, 0, 1, 1) self.editQ0 = QtGui.QDoubleSpinBox(self.gpBoxParams) self.editQ0.setMaximum(1000) self.editQ0.setSuffix(u" m3/s") self.editQ0.setAlignment(QtCore.Qt.AlignCenter) self.editQ0.setObjectName(_fromUtf8("editQ0")) self.gridLayout.addWidget(self.editQ0, 2, 1, 1, 1) self.horizontalLayout.addWidget(self.gpBoxParams) #2ème colonne : bouton lancement +choix de la config self.frameGo = QtGui.QFrame(self) self.frameGo.setSizePolicy(fixed) self.frameGo.setFixedWidth(243) self.frameGo.setFixedHeight(107) self.frameGo.setFrameShape(QtGui.QFrame.StyledPanel) self.frameGo.setFrameShadow(QtGui.QFrame.Raised) self.frameGo.setObjectName(_fromUtf8("frameGo")) self.verticalLayout = QtGui.QVBoxLayout(self.frameGo) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.btnGo = QtGui.QPushButton(self.frameGo) self.btnGo.setObjectName(_fromUtf8("btnGo")) self.btnGo.setSizePolicy(fixed) self.verticalLayout.addWidget(self.btnGo, alignment=QtCore.Qt.AlignHCenter) self.vSpacer = QtGui.QSpacerItem(5, 300, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(self.vSpacer) self.horizontalLayout.addWidget(self.frameGo) #3ème colonne : tableau des résultats self.table = TabDF(self, checkCol=True) self.table.setObjectName(_fromUtf8("table")) self.table.verticalHeader().setVisible(False) self.table.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) # self.table.setFixedSize(QtCore.QSize(500, 100)) self.horizontalLayout.addWidget(self.table) self.retranslateUi() QtCore.QMetaObject.connectSlotsByName(self) def retranslateUi(self): self.setWindowTitle(_translate("Form", "Form", None)) self.gpBoxParams.setTitle(_translate("Form", "Paramètres", None)) self.labelDeb.setText(_translate("Form", "CG min", None)) self.labelFin.setText(_translate("Form", "CG max", None)) self.labelQ0.setText(_translate("Form", "Q0", None)) self.btnGo.setText(_translate("Form", "Voir les Analogs", None)) def sizeHint(self): return QtCore.QSize(768, 123)