| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- # -*- coding: utf-8 -*-
- # Form implementation generated from reading ui file 'panneauPj.ui'
- #
- # Created: Fri Jun 26 11:38:17 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, 87)
- pj_panneau.setMinimumSize(QtCore.QSize(0, 87))
- pj_panneau.setMaximumSize(QtCore.QSize(16777215, 87))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.SolidPattern)
- palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 127, 100))
- brush.setStyle(QtCore.Qt.SolidPattern)
- palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.SolidPattern)
- palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 127, 100))
- brush.setStyle(QtCore.Qt.SolidPattern)
- palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 127, 100))
- brush.setStyle(QtCore.Qt.SolidPattern)
- palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 127, 100))
- brush.setStyle(QtCore.Qt.SolidPattern)
- palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
- pj_panneau.setPalette(palette)
- font = QtGui.QFont()
- font.setFamily(_fromUtf8("Verdana"))
- pj_panneau.setFont(font)
- pj_panneau.setAutoFillBackground(True)
- pj_panneau.setFrameShape(QtGui.QFrame.StyledPanel)
- pj_panneau.setFrameShadow(QtGui.QFrame.Sunken)
- self.horizontalLayout_2 = QtGui.QHBoxLayout(pj_panneau)
- self.horizontalLayout_2.setSpacing(12)
- self.horizontalLayout_2.setMargin(2)
- self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
- self.horizontalLayout = QtGui.QHBoxLayout()
- self.horizontalLayout.setSpacing(12)
- self.horizontalLayout.setContentsMargins(10, -1, 10, -1)
- self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
- self.pj_image = DmLabel(pj_panneau)
- self.pj_image.setMaximumSize(QtCore.QSize(60, 60))
- 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(11)
- 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(40, 40))
- self.pj_afficher_0.setMaximumSize(QtCore.QSize(40, 40))
- self.pj_afficher_0.setText(_fromUtf8(""))
- icon = QtGui.QIcon()
- icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/oeil_32.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(40, 40))
- self.pj_afficher_1.setMaximumSize(QtCore.QSize(40, 40))
- self.pj_afficher_1.setText(_fromUtf8(""))
- icon1 = QtGui.QIcon()
- icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/deplacement2_32.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(40, 40))
- self.pj_afficher_2.setMaximumSize(QtCore.QSize(40, 40))
- self.pj_afficher_2.setText(_fromUtf8(""))
- icon2 = QtGui.QIcon()
- icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/profil_32.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(40, 40))
- self.pj_afficher_3.setMaximumSize(QtCore.QSize(40, 40))
- self.pj_afficher_3.setText(_fromUtf8(""))
- icon3 = QtGui.QIcon()
- icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/attaque_32.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(40, 40))
- self.pj_afficher_4.setMaximumSize(QtCore.QSize(40, 40))
- self.pj_afficher_4.setText(_fromUtf8(""))
- icon4 = QtGui.QIcon()
- icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/16/ressource/sac_16.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(40, 40))
- self.pj_afficher_5.setMaximumSize(QtCore.QSize(40, 40))
- self.pj_afficher_5.setText(_fromUtf8(""))
- icon5 = QtGui.QIcon()
- icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/note_32.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)
- 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", "PJ", None))
- self.pj_nom.setText(_translate("pj_panneau", "Nom PJ", None))
- from dm import DmLabel
- import ressource_rc
- 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_())
|