1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 't_shape_dialog.ui'
5 # Created: Tue Nov 4 16:52:09 2014
6 # by: PyQt4 UI code generator 4.9.6
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4 import QtCore, QtGui
13 _fromUtf8 = QtCore.QString.fromUtf8
14 except AttributeError:
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)
26 class Ui_Dialog(object):
27 def setupUi(self, Dialog):
28 Dialog.setObjectName(_fromUtf8("Dialog"))
29 Dialog.resize(349, 283)
30 self.gridLayout_3 = QtGui.QGridLayout(Dialog)
31 self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
32 self.gridLayout = QtGui.QGridLayout()
33 self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
34 self.doubleSpinBox_2 = QtGui.QDoubleSpinBox(Dialog)
35 self.doubleSpinBox_2.setObjectName(_fromUtf8("doubleSpinBox_2"))
36 self.gridLayout.addWidget(self.doubleSpinBox_2, 2, 1, 1, 1)
37 self.label = QtGui.QLabel(Dialog)
38 self.label.setObjectName(_fromUtf8("label"))
39 self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
40 self.doubleSpinBox_3 = QtGui.QDoubleSpinBox(Dialog)
41 self.doubleSpinBox_3.setObjectName(_fromUtf8("doubleSpinBox_3"))
42 self.gridLayout.addWidget(self.doubleSpinBox_3, 3, 1, 1, 1)
43 self.doubleSpinBox_4 = QtGui.QDoubleSpinBox(Dialog)
44 self.doubleSpinBox_4.setObjectName(_fromUtf8("doubleSpinBox_4"))
45 self.gridLayout.addWidget(self.doubleSpinBox_4, 4, 1, 1, 1)
46 self.doubleSpinBox = QtGui.QDoubleSpinBox(Dialog)
47 self.doubleSpinBox.setObjectName(_fromUtf8("doubleSpinBox"))
48 self.gridLayout.addWidget(self.doubleSpinBox, 0, 1, 1, 1)
49 self.label_3 = QtGui.QLabel(Dialog)
50 self.label_3.setObjectName(_fromUtf8("label_3"))
51 self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
52 self.label_2 = QtGui.QLabel(Dialog)
53 self.label_2.setObjectName(_fromUtf8("label_2"))
54 self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
55 self.label_4 = QtGui.QLabel(Dialog)
56 self.label_4.setObjectName(_fromUtf8("label_4"))
57 self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1)
58 self.gridLayout_3.addLayout(self.gridLayout, 0, 0, 1, 1)
59 self.gridLayout_2 = QtGui.QGridLayout()
60 self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
61 self.checkBox = QtGui.QCheckBox(Dialog)
62 self.checkBox.setObjectName(_fromUtf8("checkBox"))
63 self.gridLayout_2.addWidget(self.checkBox, 0, 0, 1, 1)
64 self.label_5 = QtGui.QLabel(Dialog)
65 self.label_5.setObjectName(_fromUtf8("label_5"))
66 self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
67 self.doubleSpinBox_5 = QtGui.QDoubleSpinBox(Dialog)
68 self.doubleSpinBox_5.setObjectName(_fromUtf8("doubleSpinBox_5"))
69 self.gridLayout_2.addWidget(self.doubleSpinBox_5, 1, 1, 1, 1)
70 self.gridLayout_3.addLayout(self.gridLayout_2, 1, 0, 1, 1)
71 self.buttonBox = QtGui.QDialogButtonBox(Dialog)
72 self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
73 self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
74 self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
75 self.gridLayout_3.addWidget(self.buttonBox, 2, 0, 1, 1)
77 self.retranslateUi(Dialog)
78 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
79 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
80 QtCore.QObject.connect(self.checkBox, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.label_5.setEnabled)
81 QtCore.QObject.connect(self.checkBox, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.doubleSpinBox_5.setEnabled)
82 QtCore.QMetaObject.connectSlotsByName(Dialog)
84 def retranslateUi(self, Dialog):
85 Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
86 self.label.setText(_translate("Dialog", "Big pipe radius", None))
87 self.label_3.setText(_translate("Dialog", "Big pipe height", None))
88 self.label_2.setText(_translate("Dialog", "Small pipe radius", None))
89 self.label_4.setText(_translate("Dialog", "Small pipe height", None))
90 self.checkBox.setText(_translate("Dialog", "Build solid part", None))
91 self.label_5.setText(_translate("Dialog", "Solid thickness", None))
93 if __name__ == "__main__":
95 app = QtGui.QApplication(sys.argv)
96 Dialog = QtGui.QDialog()
100 sys.exit(app.exec_())