-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog_authenticated.py
97 lines (86 loc) · 3.77 KB
/
dialog_authenticated.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialog_authenticated.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# 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
from upload import Ui_Upload
import sys
UploadDialogUI, LandingPageBase1 = Ui_Upload, QtWidgets.QWidget
class UploadDatasetDialog(LandingPageBase1, UploadDialogUI):
def __init__(self, parent=None):
LandingPageBase1.__init__(self, parent)
self.setupUi(self)
class Ui_Dialog_Authenticated(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(640, 480)
Form.setWindowFlags(QtCore.Qt.FramelessWindowHint)
Form.setAttribute(QtCore.Qt.WA_TranslucentBackground)
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
Form.setFont(font)
Form.setStyleSheet("")
self.widget = QtWidgets.QWidget(Form)
self.widget.setGeometry(QtCore.QRect(50, 130, 421, 181))
self.widget.setStyleSheet("border-radius: 20px;\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgb(153, 11, 255), stop:1 rgb(255, 83, 49))")
self.widget.setObjectName("widget")
self.widget_2 = QtWidgets.QWidget(self.widget)
self.widget_2.setGeometry(QtCore.QRect(20, 20, 421, 191))
self.widget_2.setStyleSheet("background-color:rgb(255, 220, 247)")
self.widget_2.setObjectName("widget_2")
self.label = QtWidgets.QLabel(self.widget_2)
self.label.setGeometry(QtCore.QRect(20, 30, 361, 71))
font = QtGui.QFont()
font.setFamily("Bahnschrift")
font.setPointSize(12)
self.label.setFont(font)
self.label.setStyleSheet("color:rgb(116, 11, 145)")
self.label.setObjectName("label")
self.pushButton = QtWidgets.QPushButton(self.widget_2)
self.pushButton.setGeometry(QtCore.QRect(370, 10, 20, 20))
self.pushButton.setStyleSheet("border-radius: 10px;\n"
"background-color:rgb(255, 96, 43)")
self.pushButton.setObjectName("pushButton")
self.pushButton.clicked.connect(self.close)
self.pushButton_2 = QtWidgets.QPushButton(self.widget_2)
self.pushButton_2.setGeometry(QtCore.QRect(150, 110, 93, 28))
self.pushButton_2.clicked.connect(self.next)
font = QtGui.QFont()
font.setFamily("Bahnschrift")
font.setPointSize(9)
font.setBold(False)
font.setWeight(50)
self.pushButton_2.setFont(font)
self.pushButton_2.setStyleSheet("border-radius: 10px;\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgb(153, 11, 255), stop:1 rgb(255, 83, 49));\n"
"color:rgb(255, 170, 255)")
self.pushButton_2.setObjectName("pushButton_2")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.label.setText(_translate("Form", "User has been recognized.\n"
"You may open the application now."))
self.pushButton.setText(_translate("Form", "X"))
self.pushButton_2.setText(_translate("Form", "Continue"))
def close(self):
print('close')
self.pushButton.clicked.connect(QtWidgets.qApp.quit)
sys.exit()
def next(self):
print('next')
self.child_win = UploadDatasetDialog(self)
self.child_win.show()
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
Form = QtWidgets.QWidget()
ui = Ui_Dialog_Authenticated()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())