|
|
@@ -0,0 +1,145 @@
|
|
|
+# -*- coding: utf-8 -*-
|
|
|
+
|
|
|
+# Form implementation generated from reading ui file 'panneauPj.ui'
|
|
|
+#
|
|
|
+# Created: Thu Jun 25 16:48:37 2015
|
|
|
+# by: PyQt4 UI code generator 4.10.4
|
|
|
+#
|
|
|
+# WARNING! All changes made in this file will be lost!
|
|
|
+
|
|
|
+from PyQt4 import QtCore, QtGui
|
|
|
+
|
|
|
+try:
|
|
|
+ _fromUtf8 = QtCore.QString.fromUtf8
|
|
|
+except AttributeError:
|
|
|
+ def _fromUtf8(s):
|
|
|
+ return s
|
|
|
+
|
|
|
+try:
|
|
|
+ _encoding = QtGui.QApplication.UnicodeUTF8
|
|
|
+ def _translate(context, text, disambig):
|
|
|
+ return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
|
|
+except AttributeError:
|
|
|
+ def _translate(context, text, disambig):
|
|
|
+ return QtGui.QApplication.translate(context, text, disambig)
|
|
|
+
|
|
|
+class Ui_pj_panneau(object):
|
|
|
+ def setupUi(self, pj_panneau):
|
|
|
+ pj_panneau.setObjectName(_fromUtf8("pj_panneau"))
|
|
|
+ pj_panneau.resize(695, 70)
|
|
|
+ font = QtGui.QFont()
|
|
|
+ font.setFamily(_fromUtf8("Verdana"))
|
|
|
+ pj_panneau.setFont(font)
|
|
|
+ pj_panneau.setFrameShape(QtGui.QFrame.StyledPanel)
|
|
|
+ pj_panneau.setFrameShadow(QtGui.QFrame.Raised)
|
|
|
+ self.horizontalLayout_2 = QtGui.QHBoxLayout(pj_panneau)
|
|
|
+ self.horizontalLayout_2.setMargin(2)
|
|
|
+ self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
|
|
+ self.horizontalLayout = QtGui.QHBoxLayout()
|
|
|
+ self.horizontalLayout.setSpacing(12)
|
|
|
+ self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
|
|
+ self.pj_image = DmLabel(pj_panneau)
|
|
|
+ self.pj_image.setMaximumSize(QtCore.QSize(60, 16777215))
|
|
|
+ self.pj_image.setFrameShape(QtGui.QFrame.StyledPanel)
|
|
|
+ self.pj_image.setFrameShadow(QtGui.QFrame.Raised)
|
|
|
+ self.pj_image.setText(_fromUtf8(""))
|
|
|
+ self.pj_image.setObjectName(_fromUtf8("pj_image"))
|
|
|
+ self.horizontalLayout.addWidget(self.pj_image)
|
|
|
+ self.pj_nom = DmLabel(pj_panneau)
|
|
|
+ font = QtGui.QFont()
|
|
|
+ font.setPointSize(9)
|
|
|
+ font.setBold(True)
|
|
|
+ font.setItalic(False)
|
|
|
+ font.setWeight(75)
|
|
|
+ self.pj_nom.setFont(font)
|
|
|
+ self.pj_nom.setMargin(3)
|
|
|
+ self.pj_nom.setObjectName(_fromUtf8("pj_nom"))
|
|
|
+ self.horizontalLayout.addWidget(self.pj_nom)
|
|
|
+ self.pj_afficher_0 = QtGui.QPushButton(pj_panneau)
|
|
|
+ self.pj_afficher_0.setEnabled(False)
|
|
|
+ self.pj_afficher_0.setMinimumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_0.setMaximumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_0.setText(_fromUtf8(""))
|
|
|
+ icon = QtGui.QIcon()
|
|
|
+ icon.addPixmap(QtGui.QPixmap(_fromUtf8("img/oeil.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
+ self.pj_afficher_0.setIcon(icon)
|
|
|
+ self.pj_afficher_0.setIconSize(QtCore.QSize(20, 20))
|
|
|
+ self.pj_afficher_0.setObjectName(_fromUtf8("pj_afficher_0"))
|
|
|
+ self.horizontalLayout.addWidget(self.pj_afficher_0)
|
|
|
+ self.pj_afficher_1 = QtGui.QPushButton(pj_panneau)
|
|
|
+ self.pj_afficher_1.setEnabled(False)
|
|
|
+ self.pj_afficher_1.setMinimumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_1.setMaximumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_1.setText(_fromUtf8(""))
|
|
|
+ icon1 = QtGui.QIcon()
|
|
|
+ icon1.addPixmap(QtGui.QPixmap(_fromUtf8("img/btnZonePlacement.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
+ self.pj_afficher_1.setIcon(icon1)
|
|
|
+ self.pj_afficher_1.setIconSize(QtCore.QSize(20, 20))
|
|
|
+ self.pj_afficher_1.setObjectName(_fromUtf8("pj_afficher_1"))
|
|
|
+ self.horizontalLayout.addWidget(self.pj_afficher_1)
|
|
|
+ self.pj_afficher_2 = QtGui.QPushButton(pj_panneau)
|
|
|
+ self.pj_afficher_2.setEnabled(False)
|
|
|
+ self.pj_afficher_2.setMinimumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_2.setMaximumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_2.setText(_fromUtf8(""))
|
|
|
+ icon2 = QtGui.QIcon()
|
|
|
+ icon2.addPixmap(QtGui.QPixmap(_fromUtf8("img/profil.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
+ self.pj_afficher_2.setIcon(icon2)
|
|
|
+ self.pj_afficher_2.setIconSize(QtCore.QSize(20, 20))
|
|
|
+ self.pj_afficher_2.setObjectName(_fromUtf8("pj_afficher_2"))
|
|
|
+ self.horizontalLayout.addWidget(self.pj_afficher_2)
|
|
|
+ self.pj_afficher_3 = QtGui.QPushButton(pj_panneau)
|
|
|
+ self.pj_afficher_3.setEnabled(False)
|
|
|
+ self.pj_afficher_3.setMinimumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_3.setMaximumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_3.setText(_fromUtf8(""))
|
|
|
+ icon3 = QtGui.QIcon()
|
|
|
+ icon3.addPixmap(QtGui.QPixmap(_fromUtf8("img/attaque.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
+ self.pj_afficher_3.setIcon(icon3)
|
|
|
+ self.pj_afficher_3.setIconSize(QtCore.QSize(20, 20))
|
|
|
+ self.pj_afficher_3.setObjectName(_fromUtf8("pj_afficher_3"))
|
|
|
+ self.horizontalLayout.addWidget(self.pj_afficher_3)
|
|
|
+ self.pj_afficher_4 = QtGui.QPushButton(pj_panneau)
|
|
|
+ self.pj_afficher_4.setEnabled(False)
|
|
|
+ self.pj_afficher_4.setMinimumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_4.setMaximumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_4.setText(_fromUtf8(""))
|
|
|
+ icon4 = QtGui.QIcon()
|
|
|
+ icon4.addPixmap(QtGui.QPixmap(_fromUtf8("img/sac.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
+ self.pj_afficher_4.setIcon(icon4)
|
|
|
+ self.pj_afficher_4.setIconSize(QtCore.QSize(20, 20))
|
|
|
+ self.pj_afficher_4.setObjectName(_fromUtf8("pj_afficher_4"))
|
|
|
+ self.horizontalLayout.addWidget(self.pj_afficher_4)
|
|
|
+ self.pj_afficher_5 = QtGui.QPushButton(pj_panneau)
|
|
|
+ self.pj_afficher_5.setEnabled(False)
|
|
|
+ self.pj_afficher_5.setMinimumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_5.setMaximumSize(QtCore.QSize(60, 60))
|
|
|
+ self.pj_afficher_5.setText(_fromUtf8(""))
|
|
|
+ icon5 = QtGui.QIcon()
|
|
|
+ icon5.addPixmap(QtGui.QPixmap(_fromUtf8("img/note.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
+ self.pj_afficher_5.setIcon(icon5)
|
|
|
+ self.pj_afficher_5.setIconSize(QtCore.QSize(20, 20))
|
|
|
+ self.pj_afficher_5.setObjectName(_fromUtf8("pj_afficher_5"))
|
|
|
+ self.horizontalLayout.addWidget(self.pj_afficher_5)
|
|
|
+ spacerItem = QtGui.QSpacerItem(80, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
|
|
|
+ self.horizontalLayout.addItem(spacerItem)
|
|
|
+ self.horizontalLayout_2.addLayout(self.horizontalLayout)
|
|
|
+
|
|
|
+ self.retranslateUi(pj_panneau)
|
|
|
+ QtCore.QMetaObject.connectSlotsByName(pj_panneau)
|
|
|
+
|
|
|
+ def retranslateUi(self, pj_panneau):
|
|
|
+ pj_panneau.setWindowTitle(_translate("pj_panneau", "Frame", None))
|
|
|
+ self.pj_nom.setText(_translate("pj_panneau", "Nom PJ", None))
|
|
|
+
|
|
|
+from dm import DmLabel
|
|
|
+
|
|
|
+if __name__ == "__main__":
|
|
|
+ import sys
|
|
|
+ app = QtGui.QApplication(sys.argv)
|
|
|
+ pj_panneau = QtGui.QFrame()
|
|
|
+ ui = Ui_pj_panneau()
|
|
|
+ ui.setupUi(pj_panneau)
|
|
|
+ pj_panneau.show()
|
|
|
+ sys.exit(app.exec_())
|
|
|
+
|