-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_message.py
187 lines (178 loc) · 10.4 KB
/
ui_message.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Stockage\GIT\GitHub\smartest2\ui\ui_message.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Message(object):
def setupUi(self, Message):
Message.setObjectName("Message")
Message.resize(519, 209)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Message.sizePolicy().hasHeightForWidth())
Message.setSizePolicy(sizePolicy)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/Images/asc.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Message.setWindowIcon(icon)
Message.setStyleSheet("QWidget#Message {background-color: #FFFFFF}")
self.gridLayout = QtWidgets.QGridLayout(Message)
self.gridLayout.setVerticalSpacing(15)
self.gridLayout.setObjectName("gridLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSpacing(6)
self.horizontalLayout.setObjectName("horizontalLayout")
self.bt_oui = QtWidgets.QPushButton(Message)
self.bt_oui.setMinimumSize(QtCore.QSize(0, 24))
self.bt_oui.setMaximumSize(QtCore.QSize(16777215, 24))
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(9)
self.bt_oui.setFont(font)
self.bt_oui.setStyleSheet("QPushButton{border: 1px solid #8f8f91; border-radius:5px ; background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #BAD0E7)}\n"
"QPushButton:hover{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #F8F8F8, stop:1 #8FADCC)}\n"
"QPushButton:pressed{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #8FADCC, stop:1 #F8F8F8)}")
self.bt_oui.setObjectName("bt_oui")
self.horizontalLayout.addWidget(self.bt_oui)
self.bt_non = QtWidgets.QPushButton(Message)
self.bt_non.setMinimumSize(QtCore.QSize(0, 24))
self.bt_non.setMaximumSize(QtCore.QSize(16777215, 24))
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(9)
self.bt_non.setFont(font)
self.bt_non.setStyleSheet("QPushButton{border: 1px solid #8f8f91; border-radius:5px ; background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #BAD0E7)}\n"
"QPushButton:hover{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #F8F8F8, stop:1 #8FADCC)}\n"
"QPushButton:pressed{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #8FADCC, stop:1 #F8F8F8)}")
self.bt_non.setObjectName("bt_non")
self.horizontalLayout.addWidget(self.bt_non)
self.bt_save = QtWidgets.QPushButton(Message)
self.bt_save.setMinimumSize(QtCore.QSize(0, 24))
self.bt_save.setMaximumSize(QtCore.QSize(16777215, 24))
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(9)
self.bt_save.setFont(font)
self.bt_save.setStyleSheet("QPushButton{border: 1px solid #8f8f91; border-radius:5px ; background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #BAD0E7)}\n"
"QPushButton:hover{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #F8F8F8, stop:1 #8FADCC)}\n"
"QPushButton:pressed{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #8FADCC, stop:1 #F8F8F8)}")
self.bt_save.setObjectName("bt_save")
self.horizontalLayout.addWidget(self.bt_save)
self.bt_annuler = QtWidgets.QPushButton(Message)
self.bt_annuler.setMinimumSize(QtCore.QSize(0, 24))
self.bt_annuler.setMaximumSize(QtCore.QSize(16777215, 24))
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(9)
self.bt_annuler.setFont(font)
self.bt_annuler.setStyleSheet("QPushButton{border: 1px solid #8f8f91; border-radius:5px ; background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #BAD0E7)}\n"
"QPushButton:hover{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #F8F8F8, stop:1 #8FADCC)}\n"
"QPushButton:pressed{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #8FADCC, stop:1 #F8F8F8)}")
self.bt_annuler.setObjectName("bt_annuler")
self.horizontalLayout.addWidget(self.bt_annuler)
self.bt_deplier = QtWidgets.QPushButton(Message)
self.bt_deplier.setMinimumSize(QtCore.QSize(24, 24))
self.bt_deplier.setMaximumSize(QtCore.QSize(24, 24))
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(9)
self.bt_deplier.setFont(font)
self.bt_deplier.setStyleSheet("QPushButton{border: 1px solid #8f8f91; border-radius:5px ; background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #BAD0E7)}\n"
"QPushButton:hover{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #F8F8F8, stop:1 #8FADCC)}\n"
"QPushButton:pressed{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #8FADCC, stop:1 #F8F8F8)}")
self.bt_deplier.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/Images/detail_show.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.bt_deplier.setIcon(icon1)
self.bt_deplier.setObjectName("bt_deplier")
self.horizontalLayout.addWidget(self.bt_deplier)
self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 2)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setSpacing(9)
self.verticalLayout.setObjectName("verticalLayout")
self.widget_2 = QtWidgets.QWidget(Message)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget_2.sizePolicy().hasHeightForWidth())
self.widget_2.setSizePolicy(sizePolicy)
self.widget_2.setObjectName("widget_2")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget_2)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.message = QtWidgets.QLabel(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.message.sizePolicy().hasHeightForWidth())
self.message.setSizePolicy(sizePolicy)
self.message.setMinimumSize(QtCore.QSize(0, 40))
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(9)
self.message.setFont(font)
self.message.setText("")
self.message.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.message.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
self.message.setObjectName("message")
self.verticalLayout_3.addWidget(self.message)
self.verticalLayout.addWidget(self.widget_2)
self.details = QtWidgets.QTextBrowser(Message)
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(9)
self.details.setFont(font)
self.details.setObjectName("details")
self.verticalLayout.addWidget(self.details)
self.checkbox = QtWidgets.QCheckBox(Message)
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(9)
self.checkbox.setFont(font)
self.checkbox.setObjectName("checkbox")
self.verticalLayout.addWidget(self.checkbox)
self.gridLayout.addLayout(self.verticalLayout, 0, 1, 2, 1)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.icon = QtWidgets.QPushButton(Message)
self.icon.setMinimumSize(QtCore.QSize(40, 40))
self.icon.setMaximumSize(QtCore.QSize(40, 40))
self.icon.setFocusPolicy(QtCore.Qt.NoFocus)
self.icon.setStyleSheet("QPushButton:pressed{border:0px; background-color:#FFFFFF}")
self.icon.setText("")
self.icon.setIconSize(QtCore.QSize(30, 30))
self.icon.setFlat(True)
self.icon.setObjectName("icon")
self.verticalLayout_2.addWidget(self.icon)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem)
self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 2, 1)
self.retranslateUi(Message)
QtCore.QMetaObject.connectSlotsByName(Message)
Message.setTabOrder(self.bt_deplier, self.bt_annuler)
Message.setTabOrder(self.bt_annuler, self.bt_save)
Message.setTabOrder(self.bt_save, self.bt_non)
Message.setTabOrder(self.bt_non, self.bt_oui)
Message.setTabOrder(self.bt_oui, self.checkbox)
Message.setTabOrder(self.checkbox, self.details)
def retranslateUi(self, Message):
_translate = QtCore.QCoreApplication.translate
self.bt_oui.setText(_translate("Message", "Oui"))
self.bt_non.setText(_translate("Message", "Non"))
self.bt_save.setText(_translate("Message", "Sauvegarder"))
self.bt_annuler.setText(_translate("Message", "Annuler"))
self.bt_deplier.setToolTip(_translate("Message", "Ouvrir les détails"))
self.checkbox.setText(_translate("Message", " Ne plus afficher cette information"))
import icons_rc
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Message = QtWidgets.QWidget()
ui = Ui_Message()
ui.setupUi(Message)
Message.show()
sys.exit(app.exec_())