-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.py
126 lines (120 loc) · 7.22 KB
/
gui.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
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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(452, 150)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit.setObjectName("lineEdit")
self.horizontalLayout_2.addWidget(self.lineEdit)
self.pushButton_search = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_search.setObjectName("pushButton_search")
self.horizontalLayout_2.addWidget(self.pushButton_search)
self.pushButton_voice = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_voice.setObjectName("pushButton_voice")
self.horizontalLayout_2.addWidget(self.pushButton_voice)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.label_status = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_status.sizePolicy().hasHeightForWidth())
self.label_status.setSizePolicy(sizePolicy)
self.label_status.setMinimumSize(QtCore.QSize(0, 30))
self.label_status.setText("")
self.label_status.setAlignment(QtCore.Qt.AlignCenter)
self.label_status.setObjectName("label_status")
self.verticalLayout.addWidget(self.label_status)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.pushButton_back = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_back.sizePolicy().hasHeightForWidth())
self.pushButton_back.setSizePolicy(sizePolicy)
self.pushButton_back.setObjectName("pushButton_back")
self.horizontalLayout.addWidget(self.pushButton_back)
self.pushButton_play = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_play.sizePolicy().hasHeightForWidth())
self.pushButton_play.setSizePolicy(sizePolicy)
self.pushButton_play.setObjectName("pushButton_play")
self.horizontalLayout.addWidget(self.pushButton_play)
self.pushButton_pause = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_pause.sizePolicy().hasHeightForWidth())
self.pushButton_pause.setSizePolicy(sizePolicy)
self.pushButton_pause.setObjectName("pushButton_pause")
self.horizontalLayout.addWidget(self.pushButton_pause)
self.pushButton_stop = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_stop.sizePolicy().hasHeightForWidth())
self.pushButton_stop.setSizePolicy(sizePolicy)
self.pushButton_stop.setObjectName("pushButton_stop")
self.horizontalLayout.addWidget(self.pushButton_stop)
self.pushButton_forwards = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_forwards.sizePolicy().hasHeightForWidth())
self.pushButton_forwards.setSizePolicy(sizePolicy)
self.pushButton_forwards.setObjectName("pushButton_forwards")
self.horizontalLayout.addWidget(self.pushButton_forwards)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setSpacing(6)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.horizontalSlider = QtWidgets.QSlider(self.centralwidget)
self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
self.horizontalSlider.setObjectName("horizontalSlider")
self.horizontalLayout_3.addWidget(self.horizontalSlider)
self.label_volume = QtWidgets.QLabel(self.centralwidget)
self.label_volume.setMinimumSize(QtCore.QSize(29, 0))
self.label_volume.setAlignment(QtCore.Qt.AlignCenter)
self.label_volume.setObjectName("label_volume")
self.horizontalLayout_3.addWidget(self.label_volume)
self.pushButton_mute = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_mute.setObjectName("pushButton_mute")
self.horizontalLayout_3.addWidget(self.pushButton_mute)
self.pushButton_close = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_close.setObjectName("pushButton_close")
self.horizontalLayout_3.addWidget(self.pushButton_close)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "PIMP"))
self.pushButton_search.setText(_translate("MainWindow", "Search"))
self.pushButton_voice.setText(_translate("MainWindow", "Voice"))
self.pushButton_back.setText(_translate("MainWindow", "Back"))
self.pushButton_play.setText(_translate("MainWindow", "Play"))
self.pushButton_pause.setText(_translate("MainWindow", "Pause"))
self.pushButton_stop.setText(_translate("MainWindow", "Stop"))
self.pushButton_forwards.setText(_translate("MainWindow", "Forwards"))
self.label_volume.setText(_translate("MainWindow", "100%"))
self.pushButton_mute.setText(_translate("MainWindow", "Mute"))
self.pushButton_close.setText(_translate("MainWindow", "Close"))