-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuiqt_array_input.py
More file actions
128 lines (119 loc) · 5.9 KB
/
Copy pathuiqt_array_input.py
File metadata and controls
128 lines (119 loc) · 5.9 KB
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
127
128
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\Quorra\Python-Projects\Sorting-Algorithms-Visualisation\qt_designer_ozan\array_input_uiqt.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(442, 238)
MainWindow.setMinimumSize(QtCore.QSize(442, 238))
MainWindow.setMaximumSize(QtCore.QSize(442, 238))
font = QtGui.QFont()
font.setFamily("Ubuntu")
font.setPointSize(12)
MainWindow.setFont(font)
MainWindow.setStyleSheet("#MainWindow{\n"
"background-color: qlineargradient(spread:pad, x1:0, y1:0.193545, x2:1, y2:0.676, stop:0 rgba(30, 187, 114, 255), stop:1 rgba(122, 89, 196, 255));\n"
"}")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.takearray_textedit = QtWidgets.QTextEdit(self.centralwidget)
self.takearray_textedit.setGeometry(QtCore.QRect(30, 20, 381, 111))
self.takearray_textedit.setStyleSheet("background-color: rgb(231, 217, 234);\n"
"font: 10pt \"MS Shell Dlg 2\";")
self.takearray_textedit.setObjectName("takearray_textedit")
self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(30, 140, 381, 60))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.mic_btn = QtWidgets.QPushButton(self.layoutWidget)
self.mic_btn.setMinimumSize(QtCore.QSize(58, 58))
self.mic_btn.setMaximumSize(QtCore.QSize(58, 58))
self.mic_btn.setStyleSheet("#mic_btn{\n"
"background-color: rgba(0,0,0,0);\n"
"}\n"
"\n"
"#mic_btn:hover{\n"
"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 178, 102, 255), stop:0.55 rgba(235, 148, 61, 255), stop:0.98 rgba(0, 0, 0, 255), stop:1 rgba(0, 0, 0, 0));\n"
"}")
self.mic_btn.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/images/images/microphone.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.mic_btn.setIcon(icon)
self.mic_btn.setIconSize(QtCore.QSize(50, 50))
self.mic_btn.setObjectName("mic_btn")
self.horizontalLayout.addWidget(self.mic_btn)
self.clear_btn = QtWidgets.QPushButton(self.layoutWidget)
self.clear_btn.setMinimumSize(QtCore.QSize(0, 42))
self.clear_btn.setMaximumSize(QtCore.QSize(16777215, 42))
font = QtGui.QFont()
font.setFamily("Ubuntu")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.clear_btn.setFont(font)
self.clear_btn.setStyleSheet("#clear_btn{\n"
"border-radius: 12px;\n"
"border: 2px solid white;\n"
"background-color: rgb(f, f, f);\n"
"color: white;\n"
"}\n"
"\n"
"#clear_btn:hover{\n"
"background-color: \n"
"qlineargradient(spread:pad, x1:0, y1:0, x2:0.625, y2:0.761, stop:0 rgba(48, 33, 14, 255), stop:1 rgba(0, 108, 80, 255));\n"
"}")
self.clear_btn.setObjectName("clear_btn")
self.horizontalLayout.addWidget(self.clear_btn)
self.add_array_btn = QtWidgets.QPushButton(self.layoutWidget)
self.add_array_btn.setMinimumSize(QtCore.QSize(0, 42))
self.add_array_btn.setMaximumSize(QtCore.QSize(16777215, 42))
font = QtGui.QFont()
font.setFamily("Ubuntu")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.add_array_btn.setFont(font)
self.add_array_btn.setStyleSheet("#add_array_btn {\n"
"background-color: rgb(102, 61, 54);\n"
"border-radius: 10px ;\n"
"color: white;\n"
"}\n"
"\n"
"#add_array_btn:hover {\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0.625, y2:0.761, stop:0 rgba(48, 33, 14, 255), stop:1 rgba(0, 108, 80, 255));\n"
"}")
self.add_array_btn.setObjectName("add_array_btn")
self.horizontalLayout.addWidget(self.add_array_btn)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.takearray_textedit.setHtml(_translate("MainWindow", "<!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\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:7.8pt;\"><br /></p></body></html>"))
self.takearray_textedit.setPlaceholderText(_translate("MainWindow", "Please enter a string of numbers with a comma between the numbers. For example \'21, 42, 1, 4\'."))
self.clear_btn.setText(_translate("MainWindow", "CLEAR"))
self.add_array_btn.setText(_translate("MainWindow", "ADD ARRAY"))
import resources_rc
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_())