1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
class AffObjet(object):
def __init__(self,window,x,y,nom):
window.Group = QtGui.QGroupBox(window.Aff_Des)
window.Group.setGeometry(QtCore.QRect(x, y, 160, 90))
window.Group.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
window.Group.setFlat(False)
window.Group.setCheckable(True)
window.Group.setObjectName(_fromUtf8(nom))
window.H_value = QtGui.QLineEdit(window.Group)
window.H_value.setGeometry(QtCore.QRect(80, 30, 70, 20))
window.H_value.setObjectName(_fromUtf8("heure_value"))
window.label_H = QtGui.QLabel(window.Group)
window.label_H.setGeometry(QtCore.QRect(5, 30, 60, 20))
window.label_H.setObjectName(_fromUtf8("label_H"))
window.M_value = QtGui.QLineEdit(window.Group)
window.M_value.setGeometry(QtCore.QRect(80, 60, 70, 20))
window.M_value.setObjectName(_fromUtf8("Montant_value"))
window.label_M = QtGui.QLabel(window.Group)
window.label_M.setGeometry(QtCore.QRect(5, 60, 70, 20))
window.label_M.setObjectName(_fromUtf8("label_M"))
window.Group.setTitle(_translate("MainWindow", nom, None))
window.label_H.setText(_translate("MainWindow", "Heures :", None))
window.label_M.setText(_translate("MainWindow", "Montant :", None))
window.Group.show() |
Partager