-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathUI_MessageBox.py
More file actions
130 lines (122 loc) · 6.36 KB
/
UI_MessageBox.py
File metadata and controls
130 lines (122 loc) · 6.36 KB
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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UI_MessageBox.ui'
#
# Created by: PyQt4 UI code generator 4.11.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_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(323, 145)
Dialog.setStyleSheet(_fromUtf8("background-image:url(:/icons/bgxx.jpg);"))
self.verticalLayout_3 = QtGui.QVBoxLayout(Dialog)
self.verticalLayout_3.setMargin(0)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.frame = QtGui.QFrame(Dialog)
self.frame.setMaximumSize(QtCore.QSize(16777215, 120))
self.frame.setStyleSheet(_fromUtf8("background-image:url(:/Imag/Imag/Message_Background_login.png);"))
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName(_fromUtf8("frame"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.frame)
self.verticalLayout_5.setMargin(0)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.verticalLayout_4 = QtGui.QVBoxLayout()
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.QButton_Exit = QtGui.QToolButton(self.frame)
self.QButton_Exit.setMinimumSize(QtCore.QSize(28, 28))
self.QButton_Exit.setMaximumSize(QtCore.QSize(28, 28))
self.QButton_Exit.setStyleSheet(_fromUtf8("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(_fromUtf8(":/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(_fromUtf8("QButton_Exit"))
self.horizontalLayout_2.addWidget(self.QButton_Exit)
self.verticalLayout_4.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setSpacing(0)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
spacerItem1 = QtGui.QSpacerItem(15, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem1)
self.label_4 = QtGui.QLabel(self.frame)
self.label_4.setStyleSheet(_fromUtf8("color:rgb(255, 255, 255);\n"
""))
self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.label_4.setObjectName(_fromUtf8("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 = QtGui.QFrame(Dialog)
self.frame_2.setMaximumSize(QtCore.QSize(16777215, 60))
self.frame_2.setStyleSheet(_fromUtf8(""))
self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
self.frame_2.setObjectName(_fromUtf8("frame_2"))
self.verticalLayout = QtGui.QVBoxLayout(self.frame_2)
self.verticalLayout.setMargin(0)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.pushButton = QtGui.QPushButton(self.frame_2)
self.pushButton.setMaximumSize(QtCore.QSize(80, 16777215))
self.pushButton.setStyleSheet(_fromUtf8("background-image:url(:/Imag/Imag/XXX.png);"))
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.horizontalLayout.addWidget(self.pushButton)
spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.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)
QtCore.QObject.connect(self.QButton_Exit, QtCore.SIGNAL(_fromUtf8("clicked()")), Dialog.close)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), Dialog.close)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
self.QButton_Exit.setText(_translate("Dialog", "...", None))
self.label_4.setText(_translate("Dialog", "反馈信息已提交成功,谢谢您的支持!", None))
self.pushButton.setText(_translate("Dialog", "我知道了", None))
import UI_Resource_rc