forked from SainsburyWellcomeCentre/lasagna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alert_UI.py
62 lines (56 loc) · 2.88 KB
/
alert_UI.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './designerFiles/alert.ui'
#
# Created by: PyQt5 UI code generator 5.7.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_alertBox(object):
def setupUi(self, alertBox):
alertBox.setObjectName("alertBox")
alertBox.resize(400, 250)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(alertBox.sizePolicy().hasHeightForWidth())
alertBox.setSizePolicy(sizePolicy)
alertBox.setMinimumSize(QtCore.QSize(400, 250))
alertBox.setMaximumSize(QtCore.QSize(400, 250))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/icons/emblem-important.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
alertBox.setWindowIcon(icon)
self.closeButton = QtWidgets.QPushButton(alertBox)
self.closeButton.setGeometry(QtCore.QRect(150, 210, 95, 24))
self.closeButton.setObjectName("closeButton")
self.frame = QtWidgets.QFrame(alertBox)
self.frame.setGeometry(QtCore.QRect(30, 20, 341, 171))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
self.frame.setSizePolicy(sizePolicy)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.label = QtWidgets.QLabel(self.frame)
self.label.setGeometry(QtCore.QRect(10, 10, 321, 151))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
self.label.setFrameShape(QtWidgets.QFrame.NoFrame)
self.label.setFrameShadow(QtWidgets.QFrame.Plain)
self.label.setText("")
self.label.setScaledContents(False)
self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.label.setWordWrap(True)
self.label.setOpenExternalLinks(True)
self.label.setObjectName("label")
self.retranslateUi(alertBox)
QtCore.QMetaObject.connectSlotsByName(alertBox)
def retranslateUi(self, alertBox):
_translate = QtCore.QCoreApplication.translate
alertBox.setWindowTitle(_translate("alertBox", "Lasagna Alert"))
self.closeButton.setText(_translate("alertBox", "&Close"))
import mainWindow_rc