-
Notifications
You must be signed in to change notification settings - Fork 1
/
jarvisGUI.py
91 lines (85 loc) · 3.85 KB
/
jarvisGUI.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
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1445, 917)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(-10, -20, 1461, 941))
self.label.setStyleSheet("")
self.label.setText("")
self.label.setPixmap(QtGui.QPixmap("../img/iron.gif.gif"))
self.label.setScaledContents(True)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(0, 0, 401, 101))
self.label_2.setText("")
self.label_2.setPixmap(QtGui.QPixmap("../img/initial.gif.gif"))
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setGeometry(QtCore.QRect(980, 510, 451, 291))
self.label_3.setText("")
self.label_3.setPixmap(QtGui.QPixmap("../img/iron-man-animated-gif.jpg"))
self.label_3.setScaledContents(True)
self.label_3.setObjectName("label_3")
self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget)
self.textBrowser.setGeometry(QtCore.QRect(1130, 10, 311, 61))
font = QtGui.QFont()
font.setFamily("Sitka Subheading Semibold")
font.setPointSize(16)
font.setBold(True)
font.setWeight(75)
self.textBrowser.setFont(font)
self.textBrowser.setStyleSheet(
"background:transparent;\n" "border:none;\n" "color:white;"
)
self.textBrowser.setObjectName("textBrowser")
self.textBrowser_2 = QtWidgets.QTextBrowser(self.centralwidget)
self.textBrowser_2.setGeometry(QtCore.QRect(1130, 70, 311, 61))
font = QtGui.QFont()
font.setFamily("Sitka Subheading Semibold")
font.setPointSize(16)
font.setBold(True)
font.setWeight(75)
self.textBrowser_2.setFont(font)
self.textBrowser_2.setStyleSheet(
"background:transparent;\n" "border:none;\n" "color:white;"
)
self.textBrowser_2.setObjectName("textBrowser_2")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(0, 100, 101, 41))
font = QtGui.QFont()
font.setFamily("Sitka Heading Semibold")
font.setPointSize(11)
font.setBold(True)
font.setWeight(75)
self.pushButton.setFont(font)
self.pushButton.setStyleSheet("background-color: rgb(85, 170, 0);")
self.pushButton.setObjectName("pushButton")
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setGeometry(QtCore.QRect(110, 100, 101, 41))
font = QtGui.QFont()
font.setFamily("Sitka Heading Semibold")
font.setPointSize(11)
font.setBold(True)
font.setWeight(75)
self.pushButton_2.setFont(font)
self.pushButton_2.setStyleSheet("background-color: rgb(255, 85, 85);")
self.pushButton_2.setObjectName("pushButton_2")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.pushButton.setText(_translate("MainWindow", "R U N"))
self.pushButton_2.setText(_translate("MainWindow", "E X I T"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())