| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
| 10 |
|
| 11 |
class Ui_DialogRepetition(object): |
| 12 |
def setupUi(self, DialogRepetition): |
| 13 |
DialogRepetition.setObjectName("DialogRepetition") |
| 14 |
DialogRepetition.resize(400, 192) |
| 15 |
self.verticalLayout = QtWidgets.QVBoxLayout(DialogRepetition) |
| 16 |
self.verticalLayout.setObjectName("verticalLayout") |
| 17 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
| 18 |
self.horizontalLayout.setObjectName("horizontalLayout") |
| 19 |
self.label_evts = QtWidgets.QLabel(DialogRepetition) |
| 20 |
self.label_evts.setObjectName("label_evts") |
| 21 |
self.horizontalLayout.addWidget(self.label_evts) |
| 22 |
self.evenements = QtWidgets.QLineEdit(DialogRepetition) |
| 23 |
self.evenements.setObjectName("evenements") |
| 24 |
self.horizontalLayout.addWidget(self.evenements) |
| 25 |
self.verticalLayout.addLayout(self.horizontalLayout) |
| 26 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
| 27 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
| 28 |
self.label_probas = QtWidgets.QLabel(DialogRepetition) |
| 29 |
self.label_probas.setObjectName("label_probas") |
| 30 |
self.horizontalLayout_2.addWidget(self.label_probas) |
| 31 |
self.probas = QtWidgets.QLineEdit(DialogRepetition) |
| 32 |
self.probas.setObjectName("probas") |
| 33 |
self.horizontalLayout_2.addWidget(self.probas) |
| 34 |
self.verticalLayout.addLayout(self.horizontalLayout_2) |
| 35 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
| 36 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
| 37 |
self.verticalLayout.addLayout(self.horizontalLayout_3) |
| 38 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
| 39 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
| 40 |
self.label_niveaux = QtWidgets.QLabel(DialogRepetition) |
| 41 |
self.label_niveaux.setObjectName("label_niveaux") |
| 42 |
self.horizontalLayout_4.addWidget(self.label_niveaux) |
| 43 |
self.niveaux = QtWidgets.QSpinBox(DialogRepetition) |
| 44 |
self.niveaux.setMinimum(1) |
| 45 |
self.niveaux.setMaximum(10) |
| 46 |
self.niveaux.setProperty("value", 3) |
| 47 |
self.niveaux.setObjectName("niveaux") |
| 48 |
self.horizontalLayout_4.addWidget(self.niveaux) |
| 49 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
| 50 |
self.horizontalLayout_4.addItem(spacerItem) |
| 51 |
self.verticalLayout.addLayout(self.horizontalLayout_4) |
| 52 |
self.numeroter = QtWidgets.QCheckBox(DialogRepetition) |
| 53 |
self.numeroter.setChecked(True) |
| 54 |
self.numeroter.setObjectName("numeroter") |
| 55 |
self.verticalLayout.addWidget(self.numeroter) |
| 56 |
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
| 57 |
self.verticalLayout.addItem(spacerItem1) |
| 58 |
self.buttonBox = QtWidgets.QDialogButtonBox(DialogRepetition) |
| 59 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
| 60 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
| 61 |
self.buttonBox.setObjectName("buttonBox") |
| 62 |
self.verticalLayout.addWidget(self.buttonBox) |
| 63 |
|
| 64 |
self.retranslateUi(DialogRepetition) |
| 65 |
self.buttonBox.accepted.connect(DialogRepetition.accept) |
| 66 |
self.buttonBox.rejected.connect(DialogRepetition.reject) |
| 67 |
QtCore.QMetaObject.connectSlotsByName(DialogRepetition) |
| 68 |
|
| 69 |
def retranslateUi(self, DialogRepetition): |
| 70 |
_translate = QtCore.QCoreApplication.translate |
| 71 |
DialogRepetition.setWindowTitle(_translate("DialogRepetition", "Répétition d\'expériences indépendantes")) |
| 72 |
self.label_evts.setText(_translate("DialogRepetition", "Évènements:")) |
| 73 |
self.evenements.setToolTip(_translate("DialogRepetition", "<html><head/><body><p>Rentrer les évènements séparés par un <span style=\" font-weight:600;\">point-virgule</span>.</p><p>Exemple: « A ; B ; C ».</p><p>Si un seul évènement est entré, l\'évènement contraire est rajouté.</p></body></html>")) |
| 74 |
self.evenements.setWhatsThis(_translate("DialogRepetition", "<html><head/><body><p>Rentrer les évènements séparés par un <span style=\" font-weight:600;\">point-virgule</span>.</p><p>Exemple: « A ; B ; C ».</p><p>Si un seul évènement est entré, l\'évènement contraire est rajouté.</p></body></html>")) |
| 75 |
self.label_probas.setText(_translate("DialogRepetition", "Probabilités: ")) |
| 76 |
self.probas.setToolTip(_translate("DialogRepetition", "<html><head/><body><p>Rentrer les probabilités des évènements précédents, séparés par un <span style=\" font-weight:600;\">point-virgule</span>.</p><p>La dernière probabilité peut-être omise.</p></body></html>")) |
| 77 |
self.probas.setWhatsThis(_translate("DialogRepetition", "<html><head/><body><p>Rentrer les probabilités des évènements précédents, séparés par un <span style=\" font-weight:600;\">point-virgule</span>.</p><p>La dernière probabilité peut-être omise.</p></body></html>")) |
| 78 |
self.label_niveaux.setText(_translate("DialogRepetition", "Nombre de niveaux")) |
| 79 |
self.numeroter.setToolTip(_translate("DialogRepetition", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" |
| 80 |
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" |
| 81 |
"p, li { white-space: pre-wrap; }\n" |
| 82 |
"</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" |
| 83 |
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Distinguer les expériences successives en rajoutant des indices aux évènements.</p>\n" |
| 84 |
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Par exemple, A<span style=\" vertical-align:sub;\">1</span>, puis A<span style=\" vertical-align:sub;\">2</span>, A<span style=\" vertical-align:sub;\">3</span>, etc.</p></body></html>")) |
| 85 |
self.numeroter.setText(_translate("DialogRepetition", "Numéroter les évènements")) |
| 86 |
|