ecran_panneauCh.py 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'panneauChapitre.ui'
  3. #
  4. # Created: Thu Oct 08 12:14:08 2015
  5. # by: PyQt4 UI code generator 4.10.4
  6. #
  7. # WARNING! All changes made in this file will be lost!
  8. from PyQt4 import QtCore, QtGui
  9. try:
  10. _fromUtf8 = QtCore.QString.fromUtf8
  11. except AttributeError:
  12. def _fromUtf8(s):
  13. return s
  14. try:
  15. _encoding = QtGui.QApplication.UnicodeUTF8
  16. def _translate(context, text, disambig):
  17. return QtGui.QApplication.translate(context, text, disambig, _encoding)
  18. except AttributeError:
  19. def _translate(context, text, disambig):
  20. return QtGui.QApplication.translate(context, text, disambig)
  21. class Ui_ch_panneau(object):
  22. def setupUi(self, ch_panneau):
  23. ch_panneau.setObjectName(_fromUtf8("ch_panneau"))
  24. ch_panneau.resize(386, 199)
  25. ch_panneau.setFrameShape(QtGui.QFrame.StyledPanel)
  26. ch_panneau.setFrameShadow(QtGui.QFrame.Raised)
  27. self.ch_presentation = DmTextEdit(ch_panneau)
  28. self.ch_presentation.setGeometry(QtCore.QRect(30, 90, 321, 71))
  29. palette = QtGui.QPalette()
  30. brush = QtGui.QBrush(QtGui.QColor(249, 249, 249))
  31. brush.setStyle(QtCore.Qt.SolidPattern)
  32. palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
  33. brush = QtGui.QBrush(QtGui.QColor(249, 249, 249))
  34. brush.setStyle(QtCore.Qt.SolidPattern)
  35. palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
  36. brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
  37. brush.setStyle(QtCore.Qt.SolidPattern)
  38. palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
  39. self.ch_presentation.setPalette(palette)
  40. self.ch_presentation.setObjectName(_fromUtf8("ch_presentation"))
  41. self.ch_num = DmLabel(ch_panneau)
  42. self.ch_num.setGeometry(QtCore.QRect(20, 10, 141, 21))
  43. font = QtGui.QFont()
  44. font.setPointSize(9)
  45. self.ch_num.setFont(font)
  46. self.ch_num.setObjectName(_fromUtf8("ch_num"))
  47. self.label_4 = QtGui.QLabel(ch_panneau)
  48. self.label_4.setGeometry(QtCore.QRect(30, 70, 91, 21))
  49. self.label_4.setObjectName(_fromUtf8("label_4"))
  50. self.ch_nom = DmLineEdit(ch_panneau)
  51. self.ch_nom.setGeometry(QtCore.QRect(70, 40, 281, 21))
  52. palette = QtGui.QPalette()
  53. brush = QtGui.QBrush(QtGui.QColor(249, 249, 249))
  54. brush.setStyle(QtCore.Qt.SolidPattern)
  55. palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
  56. brush = QtGui.QBrush(QtGui.QColor(249, 249, 249))
  57. brush.setStyle(QtCore.Qt.SolidPattern)
  58. palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
  59. brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
  60. brush.setStyle(QtCore.Qt.SolidPattern)
  61. palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
  62. self.ch_nom.setPalette(palette)
  63. self.ch_nom.setObjectName(_fromUtf8("ch_nom"))
  64. self.label_2 = QtGui.QLabel(ch_panneau)
  65. self.label_2.setGeometry(QtCore.QRect(30, 40, 41, 21))
  66. self.label_2.setObjectName(_fromUtf8("label_2"))
  67. self.retranslateUi(ch_panneau)
  68. QtCore.QMetaObject.connectSlotsByName(ch_panneau)
  69. def retranslateUi(self, ch_panneau):
  70. ch_panneau.setWindowTitle(_translate("ch_panneau", "Frame", None))
  71. self.ch_num.setText(_translate("ch_panneau", "Chapitre 1", None))
  72. self.label_4.setText(_translate("ch_panneau", "Présentation :", None))
  73. self.label_2.setText(_translate("ch_panneau", "Titre :", None))
  74. from dm import DmTextEdit, DmLineEdit, DmLabel
  75. if __name__ == "__main__":
  76. import sys
  77. app = QtGui.QApplication(sys.argv)
  78. ch_panneau = QtGui.QFrame()
  79. ui = Ui_ch_panneau()
  80. ui.setupUi(ch_panneau)
  81. ch_panneau.show()
  82. sys.exit(app.exec_())