-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathui_error.py
127 lines (107 loc) · 5.53 KB
/
ui_error.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
###########################################################################################
### CODE: WRITTEN BY: ANJAL.P AUGUST 11 2020 ###
### PROJECT: PELLIS Z1 ###
### PURPOSE: WINDOWS/LINUX/MAC OS FLAT MODERN UI ###
### BASED ON QT DESIGNER, PySide2 ###
### USE CASE: TEMPLATE FOR SOFTWARES ###
### LICENCE: MIT OPENSOURCE LICENCE ###
### ###
### CODE IS FREE TO USE AND MODIFY ###
###########################################################################################
###########################################################################################
# CAUTION #
# THI FILE IS AUTOGENERATED BY THE PYSIDE2-UIC. DO OPEN THE CORRESPONDING ui_main.ui #
# FILE FOR YOU TO MODIFY AND HEAD OVER TO THE MAIN.PY OR UI_FUNCTION.PY FILE FOR FURTHER #
# FUNCTION MODIFICATION. #
###########################################################################################
from PySide2.QtCore import (QCoreApplication, QDate, QDateTime, QMetaObject,
QObject, QPoint, QRect, QSize, QTime, QUrl, Qt)
from PySide2.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont,
QFontDatabase, QIcon, QKeySequence, QLinearGradient, QPalette, QPainter,
QPixmap, QRadialGradient)
from PySide2.QtWidgets import *
class Ui_Error(object):
def setupUi(self, Error):
if not Error.objectName():
Error.setObjectName(u"Error")
Error.resize(250, 150)
Error.setMinimumSize(QSize(250, 150))
Error.setMaximumSize(QSize(250, 150))
self.horizontalLayout = QHBoxLayout(Error)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.frame = QFrame(Error)
self.frame.setObjectName(u"frame")
self.frame.setStyleSheet(u"background:rgb(51,51,51);")
self.frame.setFrameShape(QFrame.NoFrame)
self.frame.setFrameShadow(QFrame.Plain)
self.verticalLayout = QVBoxLayout(self.frame)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(2, 2, 2, 2)
self.frame_top = QFrame(self.frame)
self.frame_top.setObjectName(u"frame_top")
self.frame_top.setMinimumSize(QSize(0, 55))
self.frame_top.setMaximumSize(QSize(16777215, 55))
self.frame_top.setStyleSheet(u"background:rgb(91,90,90);")
self.frame_top.setFrameShape(QFrame.NoFrame)
self.frame_top.setFrameShadow(QFrame.Plain)
self.horizontalLayout_2 = QHBoxLayout(self.frame_top)
self.horizontalLayout_2.setSpacing(5)
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.horizontalLayout_2.setContentsMargins(15, 5, 0, 0)
self.lab_icon = QLabel(self.frame_top)
self.lab_icon.setObjectName(u"lab_icon")
self.lab_icon.setMinimumSize(QSize(35, 35))
self.lab_icon.setMaximumSize(QSize(35, 35))
self.horizontalLayout_2.addWidget(self.lab_icon)
self.lab_heading = QLabel(self.frame_top)
self.lab_heading.setObjectName(u"lab_heading")
font = QFont()
font.setFamily(u"Segoe UI")
font.setPointSize(12)
self.lab_heading.setFont(font)
self.lab_heading.setStyleSheet(u"color:rgb(255,255,255);")
self.lab_heading.setWordWrap(True)
self.horizontalLayout_2.addWidget(self.lab_heading)
self.verticalLayout.addWidget(self.frame_top)
self.frame_bottom = QFrame(self.frame)
self.frame_bottom.setObjectName(u"frame_bottom")
self.frame_bottom.setStyleSheet(u"background:rgb(91,90,90);")
self.frame_bottom.setFrameShape(QFrame.NoFrame)
self.frame_bottom.setFrameShadow(QFrame.Plain)
self.gridLayout = QGridLayout(self.frame_bottom)
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setContentsMargins(-1, -1, -1, 0)
self.bn_ok = QPushButton(self.frame_bottom)
self.bn_ok.setObjectName(u"bn_ok")
self.bn_ok.setMinimumSize(QSize(69, 25))
self.bn_ok.setMaximumSize(QSize(69, 25))
self.bn_ok.setStyleSheet(u"QPushButton {\n"
" border: 2px solid rgb(51,51,51);\n"
" border-radius: 5px; \n"
" color:rgb(255,255,255);\n"
" background-color: rgb(51,51,51);\n"
"}\n"
"QPushButton:hover {\n"
" border: 2px solid rgb(0,143,150);\n"
" background-color: rgb(0,143,150);\n"
"}\n"
"QPushButton:pressed { \n"
" border: 2px solid rgb(0,143,150);\n"
" background-color: rgb(51,51,51);\n"
"}\n"
"")
self.gridLayout.addWidget(self.bn_ok, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.frame_bottom)
self.horizontalLayout.addWidget(self.frame)
self.retranslateUi(Error)
QMetaObject.connectSlotsByName(Error)
# setupUi
def retranslateUi(self, Error):
Error.setWindowTitle(QCoreApplication.translate("Error", u"Dialog", None))
self.lab_icon.setText("")
self.lab_heading.setText("")
self.bn_ok.setText("")
# retranslateUi