~314r/joliebulle/joliebulle-2.8

11 by 314r
volume pre-ebu et calcul SG
1
# -*- coding: utf-8 -*-
2
3
# Form implementation generated from reading ui file 'outilAlc.ui'
4
#
309.2.1 by Le suisse
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool
5
# Created: Fri Jan  4 15:56:16 2013
6
#      by: PyQt4 UI code generator 4.9.6
11 by 314r
volume pre-ebu et calcul SG
7
#
8
# WARNING! All changes made in this file will be lost!
9
10
from PyQt4 import QtCore, QtGui
11
12
try:
13
    _fromUtf8 = QtCore.QString.fromUtf8
14
except AttributeError:
309.2.1 by Le suisse
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool
15
    def _fromUtf8(s):
16
        return s
17
18
try:
19
    _encoding = QtGui.QApplication.UnicodeUTF8
20
    def _translate(context, text, disambig):
21
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
22
except AttributeError:
23
    def _translate(context, text, disambig):
24
        return QtGui.QApplication.translate(context, text, disambig)
11 by 314r
volume pre-ebu et calcul SG
25
26
class Ui_DialogAlc(object):
27
    def setupUi(self, DialogAlc):
28
        DialogAlc.setObjectName(_fromUtf8("DialogAlc"))
309.2.1 by Le suisse
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool
29
        DialogAlc.resize(270, 219)
11 by 314r
volume pre-ebu et calcul SG
30
        self.gridLayout = QtGui.QGridLayout(DialogAlc)
31
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
32
        self.formLayout = QtGui.QFormLayout()
33
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
34
        self.label = QtGui.QLabel(DialogAlc)
35
        self.label.setObjectName(_fromUtf8("label"))
36
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
37
        self.label_2 = QtGui.QLabel(DialogAlc)
38
        self.label_2.setObjectName(_fromUtf8("label_2"))
39
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
40
        self.label_3 = QtGui.QLabel(DialogAlc)
41
        self.label_3.setObjectName(_fromUtf8("label_3"))
309.2.1 by Le suisse
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool
42
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_3)
11 by 314r
volume pre-ebu et calcul SG
43
        self.labelAlc = QtGui.QLabel(DialogAlc)
44
        self.labelAlc.setObjectName(_fromUtf8("labelAlc"))
309.2.1 by Le suisse
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool
45
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.labelAlc)
11 by 314r
volume pre-ebu et calcul SG
46
        self.doubleSpinBoxDI = QtGui.QDoubleSpinBox(DialogAlc)
47
        self.doubleSpinBoxDI.setDecimals(3)
48
        self.doubleSpinBoxDI.setMinimum(1.0)
49
        self.doubleSpinBoxDI.setMaximum(1.9)
50
        self.doubleSpinBoxDI.setSingleStep(0.001)
51
        self.doubleSpinBoxDI.setObjectName(_fromUtf8("doubleSpinBoxDI"))
52
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.doubleSpinBoxDI)
53
        self.doubleSpinBoxDF = QtGui.QDoubleSpinBox(DialogAlc)
54
        self.doubleSpinBoxDF.setDecimals(3)
55
        self.doubleSpinBoxDF.setMinimum(1.0)
56
        self.doubleSpinBoxDF.setMaximum(1.9)
57
        self.doubleSpinBoxDF.setSingleStep(0.001)
58
        self.doubleSpinBoxDF.setObjectName(_fromUtf8("doubleSpinBoxDF"))
59
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.doubleSpinBoxDF)
60
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
309.2.1 by Le suisse
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool
61
        self.formLayout.setItem(3, QtGui.QFormLayout.LabelRole, spacerItem)
11 by 314r
volume pre-ebu et calcul SG
62
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
309.2.1 by Le suisse
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool
63
        self.formLayout.setItem(5, QtGui.QFormLayout.LabelRole, spacerItem1)
64
        self.label_4 = QtGui.QLabel(DialogAlc)
65
        self.label_4.setObjectName(_fromUtf8("label_4"))
66
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_4)
67
        self.doubleSpinBoxSucre = QtGui.QDoubleSpinBox(DialogAlc)
68
        self.doubleSpinBoxSucre.setSingleStep(0.1)
69
        self.doubleSpinBoxSucre.setProperty("value", 7.0)
70
        self.doubleSpinBoxSucre.setObjectName(_fromUtf8("doubleSpinBoxSucre"))
71
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.doubleSpinBoxSucre)
11 by 314r
volume pre-ebu et calcul SG
72
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)
73
        self.buttonBox = QtGui.QDialogButtonBox(DialogAlc)
74
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
75
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
76
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
77
        self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1)
78
79
        self.retranslateUi(DialogAlc)
80
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DialogAlc.accept)
81
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DialogAlc.reject)
82
        QtCore.QMetaObject.connectSlotsByName(DialogAlc)
83
84
    def retranslateUi(self, DialogAlc):
309.2.1 by Le suisse
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool
85
        DialogAlc.setWindowTitle(_translate("DialogAlc", "Calcul taux alcool", None))
86
        self.label.setText(_translate("DialogAlc", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
87
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
88
"p, li { white-space: pre-wrap; }\n"
89
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
90
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Densité initiale</span></p></body></html>", None))
91
        self.label_2.setText(_translate("DialogAlc", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
92
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
93
"p, li { white-space: pre-wrap; }\n"
94
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
95
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Densité finale</span></p></body></html>", None))
96
        self.label_3.setText(_translate("DialogAlc", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
97
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
98
"p, li { white-space: pre-wrap; }\n"
99
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
100
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Alcool par volume (%) :</span></p></body></html>", None))
101
        self.labelAlc.setText(_translate("DialogAlc", "0", None))
102
        self.label_4.setText(_translate("DialogAlc", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
103
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
104
"p, li { white-space: pre-wrap; }\n"
105
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
106
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Sucre ajouté (g/L)</span></p></body></html>", None))
107
108
109
if __name__ == "__main__":
110
    import sys
111
    app = QtGui.QApplication(sys.argv)
112
    DialogAlc = QtGui.QDialog()
113
    ui = Ui_DialogAlc()
114
    ui.setupUi(DialogAlc)
115
    DialogAlc.show()
116
    sys.exit(app.exec_())
11 by 314r
volume pre-ebu et calcul SG
117