-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_alert.py
75 lines (66 loc) · 3.86 KB
/
user_alert.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'user_alert.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_AlertWindow(object):
def setupUi(self, AlertWindow):
AlertWindow.setObjectName("AlertWindow")
AlertWindow.resize(350, 220)
AlertWindow.setMinimumSize(QtCore.QSize(350, 200))
AlertWindow.setMaximumSize(QtCore.QSize(350, 300))
self.centralwidget = QtWidgets.QWidget(AlertWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_2.setObjectName("gridLayout_2")
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget)
self.textBrowser.setEnabled(True)
self.textBrowser.setMouseTracking(False)
self.textBrowser.setAcceptDrops(False)
self.textBrowser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
self.textBrowser.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.textBrowser.setAcceptRichText(True)
self.textBrowser.setOpenLinks(False)
self.textBrowser.setObjectName("textBrowser")
self.gridLayout.addWidget(self.textBrowser, 0, 0, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
self.browse_apk = QtWidgets.QPushButton(self.centralwidget)
self.browse_apk.setStyleSheet("font: 14pt \"Segoe UI\";")
self.browse_apk.setObjectName("browse_apk")
self.gridLayout_2.addWidget(self.browse_apk, 1, 0, 1, 1)
AlertWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(AlertWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 350, 22))
self.menubar.setObjectName("menubar")
AlertWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(AlertWindow)
self.statusbar.setObjectName("statusbar")
AlertWindow.setStatusBar(self.statusbar)
self.retranslateUi(AlertWindow)
QtCore.QMetaObject.connectSlotsByName(AlertWindow)
def retranslateUi(self, AlertWindow):
_translate = QtCore.QCoreApplication.translate
AlertWindow.setWindowTitle(_translate("AlertWindow", "ALERT!"))
self.textBrowser.setHtml(_translate("AlertWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:\'Segoe UI\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; color:#c50000;\">ALERT:</span></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; color:#000000;\">No current APK file found. Please select \'Browse\' to upload.</span></p></body></html>"))
self.browse_apk.setText(_translate("AlertWindow", "Browse"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
AlertWindow = QtWidgets.QMainWindow()
ui = Ui_AlertWindow()
ui.setupUi(AlertWindow)
AlertWindow.show()
sys.exit(app.exec_())