~314r/joliebulle/joliebulle-2.8

« back to all changes in this revision

Viewing changes to outilAlc_ui.py

  • Committer: Le suisse
  • Date: 2013-01-04 15:38:33 UTC
  • mto: This revision was merged to the branch mainline in revision 311.
  • Revision ID: lesuisse.dev@gmail.com-20130104153833-a8pk6pue5dgiipya
Prise en compte du sucre ajouté à l'embouteillage dans l'outil de calcul du taux d'alcool

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# Form implementation generated from reading ui file 'outilAlc.ui'
4
4
#
5
 
# Created: Wed Mar  2 23:05:18 2011
6
 
#      by: PyQt4 UI code generator 4.8.3
 
5
# Created: Fri Jan  4 15:56:16 2013
 
6
#      by: PyQt4 UI code generator 4.9.6
7
7
#
8
8
# WARNING! All changes made in this file will be lost!
9
9
 
12
12
try:
13
13
    _fromUtf8 = QtCore.QString.fromUtf8
14
14
except AttributeError:
15
 
    _fromUtf8 = lambda s: s
 
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)
16
25
 
17
26
class Ui_DialogAlc(object):
18
27
    def setupUi(self, DialogAlc):
19
28
        DialogAlc.setObjectName(_fromUtf8("DialogAlc"))
20
 
        DialogAlc.resize(236, 142)
 
29
        DialogAlc.resize(270, 219)
21
30
        self.gridLayout = QtGui.QGridLayout(DialogAlc)
22
31
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
23
32
        self.formLayout = QtGui.QFormLayout()
30
39
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
31
40
        self.label_3 = QtGui.QLabel(DialogAlc)
32
41
        self.label_3.setObjectName(_fromUtf8("label_3"))
33
 
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_3)
 
42
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_3)
34
43
        self.labelAlc = QtGui.QLabel(DialogAlc)
35
44
        self.labelAlc.setObjectName(_fromUtf8("labelAlc"))
36
 
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.labelAlc)
 
45
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.labelAlc)
37
46
        self.doubleSpinBoxDI = QtGui.QDoubleSpinBox(DialogAlc)
38
47
        self.doubleSpinBoxDI.setDecimals(3)
39
48
        self.doubleSpinBoxDI.setMinimum(1.0)
49
58
        self.doubleSpinBoxDF.setObjectName(_fromUtf8("doubleSpinBoxDF"))
50
59
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.doubleSpinBoxDF)
51
60
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
52
 
        self.formLayout.setItem(2, QtGui.QFormLayout.LabelRole, spacerItem)
 
61
        self.formLayout.setItem(3, QtGui.QFormLayout.LabelRole, spacerItem)
53
62
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
54
 
        self.formLayout.setItem(4, QtGui.QFormLayout.LabelRole, spacerItem1)
 
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)
55
72
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)
56
73
        self.buttonBox = QtGui.QDialogButtonBox(DialogAlc)
57
74
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
65
82
        QtCore.QMetaObject.connectSlotsByName(DialogAlc)
66
83
 
67
84
    def retranslateUi(self, DialogAlc):
68
 
        DialogAlc.setWindowTitle(QtGui.QApplication.translate("DialogAlc", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
69
 
        self.label.setText(QtGui.QApplication.translate("DialogAlc", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
70
 
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
71
 
"p, li { white-space: pre-wrap; }\n"
72
 
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
73
 
"<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, QtGui.QApplication.UnicodeUTF8))
74
 
        self.label_2.setText(QtGui.QApplication.translate("DialogAlc", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
75
 
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
76
 
"p, li { white-space: pre-wrap; }\n"
77
 
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
78
 
"<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, QtGui.QApplication.UnicodeUTF8))
79
 
        self.label_3.setText(QtGui.QApplication.translate("DialogAlc", "<!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:\'Ubuntu\'; font-size:9pt; 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;\"><span style=\" font-weight:600;\">Alcool par volume (%) :</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
84
 
        self.labelAlc.setText(QtGui.QApplication.translate("DialogAlc", "0", None, QtGui.QApplication.UnicodeUTF8))
 
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_())
85
117