forked from kuoted/Quotes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UI_MessageBox.py
117 lines (111 loc) · 5.83 KB
/
UI_MessageBox.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UI_MessageBox.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(323, 145)
Dialog.setStyleSheet("background-image:url(:/icons/bgxx.jpg);")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(Dialog)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.frame = QtWidgets.QFrame(Dialog)
self.frame.setMaximumSize(QtCore.QSize(16777215, 120))
self.frame.setStyleSheet("background-image:url(:/Imag/Imag/Message_Background_login.png);")
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame)
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.QButton_Exit = QtWidgets.QToolButton(self.frame)
self.QButton_Exit.setMinimumSize(QtCore.QSize(28, 28))
self.QButton_Exit.setMaximumSize(QtCore.QSize(28, 28))
self.QButton_Exit.setStyleSheet("QToolButton:hover {\n"
"border:5px;\n"
"background-color:rgb(255, 85, 0) ;\n"
"}\n"
"QToolButton{\n"
"border-radius: 4px;\n"
"selection-background-color: darkgray;\n"
"lineedit-password-character: 9679;\n"
"selection-color: #0a214c;\n"
"background-color:(0,0,0,0);\n"
"background-image:url(:/icons/bgxx.jpg);\n"
"}\n"
"")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/Imag/Imag/close.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.QButton_Exit.setIcon(icon)
self.QButton_Exit.setIconSize(QtCore.QSize(28, 28))
self.QButton_Exit.setObjectName("QButton_Exit")
self.horizontalLayout_2.addWidget(self.QButton_Exit)
self.verticalLayout_4.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setSpacing(0)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
spacerItem1 = QtWidgets.QSpacerItem(15, 20, QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem1)
self.label_4 = QtWidgets.QLabel(self.frame)
self.label_4.setStyleSheet("color:rgb(255, 255, 255);\n"
"")
self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.label_4.setObjectName("label_4")
self.horizontalLayout_3.addWidget(self.label_4)
self.verticalLayout_4.addLayout(self.horizontalLayout_3)
self.verticalLayout_5.addLayout(self.verticalLayout_4)
self.verticalLayout_2.addWidget(self.frame)
self.frame_2 = QtWidgets.QFrame(Dialog)
self.frame_2.setMaximumSize(QtCore.QSize(16777215, 60))
self.frame_2.setStyleSheet("")
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_2)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.pushButton = QtWidgets.QPushButton(self.frame_2)
self.pushButton.setMaximumSize(QtCore.QSize(80, 16777215))
self.pushButton.setStyleSheet("background-image:url(:/Imag/Imag/XXX.png);")
self.pushButton.setObjectName("pushButton")
self.horizontalLayout.addWidget(self.pushButton)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem3)
self.verticalLayout.addLayout(self.horizontalLayout)
self.verticalLayout_2.addWidget(self.frame_2)
self.verticalLayout_3.addLayout(self.verticalLayout_2)
self.retranslateUi(Dialog)
self.QButton_Exit.clicked.connect(Dialog.close)
self.pushButton.clicked.connect(Dialog.close)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.QButton_Exit.setText(_translate("Dialog", "..."))
self.label_4.setText(_translate("Dialog", "反馈信息已提交成功,谢谢您的支持!"))
self.pushButton.setText(_translate("Dialog", "我知道了"))
import UI_Resource_rc