forked from rose-jinyang/LinVAM
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathui_mainwnd.py
104 lines (97 loc) · 5.24 KB
/
ui_mainwnd.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwnd.ui'
#
# Created by: PyQt5 UI code generator 5.14.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWidget(object):
def setupUi(self, MainWidget):
MainWidget.setObjectName("MainWidget")
MainWidget.resize(820, 166)
font = QtGui.QFont()
font.setPointSize(10)
MainWidget.setFont(font)
self.gridLayout_2 = QtWidgets.QGridLayout(MainWidget)
self.gridLayout_2.setContentsMargins(-1, 20, -1, -1)
self.gridLayout_2.setVerticalSpacing(20)
self.gridLayout_2.setObjectName("gridLayout_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setSpacing(20)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.listeningChk = QtWidgets.QCheckBox(MainWidget)
self.listeningChk.setObjectName("listeningChk")
self.horizontalLayout_2.addWidget(self.listeningChk)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.groupBox = QtWidgets.QGroupBox(MainWidget)
self.groupBox.setMinimumSize(QtCore.QSize(200, 42))
self.groupBox.setAlignment(QtCore.Qt.AlignCenter)
self.groupBox.setObjectName("groupBox")
self.sliderVolume = QtWidgets.QSlider(self.groupBox)
self.sliderVolume.setGeometry(QtCore.QRect(10, 20, 181, 21))
self.sliderVolume.setMaximum(100)
self.sliderVolume.setProperty("value", 100)
self.sliderVolume.setOrientation(QtCore.Qt.Horizontal)
self.sliderVolume.setObjectName("sliderVolume")
self.horizontalLayout_2.addWidget(self.groupBox)
spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.ok = QtWidgets.QPushButton(MainWidget)
self.ok.setMinimumSize(QtCore.QSize(130, 0))
self.ok.setObjectName("ok")
self.horizontalLayout_2.addWidget(self.ok)
self.cancel = QtWidgets.QPushButton(MainWidget)
self.cancel.setMinimumSize(QtCore.QSize(130, 0))
self.cancel.setObjectName("cancel")
self.horizontalLayout_2.addWidget(self.cancel)
self.gridLayout_2.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSpacing(20)
self.horizontalLayout.setObjectName("horizontalLayout")
self.label = QtWidgets.QLabel(MainWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
self.label.setMinimumSize(QtCore.QSize(60, 0))
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.profileCbx = QtWidgets.QComboBox(MainWidget)
self.profileCbx.setMinimumSize(QtCore.QSize(300, 0))
self.profileCbx.setObjectName("profileCbx")
self.horizontalLayout.addWidget(self.profileCbx)
self.addBut = QtWidgets.QPushButton(MainWidget)
self.addBut.setMinimumSize(QtCore.QSize(75, 0))
self.addBut.setObjectName("addBut")
self.horizontalLayout.addWidget(self.addBut)
self.editBut = QtWidgets.QPushButton(MainWidget)
self.editBut.setMinimumSize(QtCore.QSize(75, 0))
self.editBut.setObjectName("editBut")
self.horizontalLayout.addWidget(self.editBut)
self.copyBut = QtWidgets.QPushButton(MainWidget)
self.copyBut.setMinimumSize(QtCore.QSize(75, 0))
self.copyBut.setObjectName("copyBut")
self.horizontalLayout.addWidget(self.copyBut)
self.removeBut = QtWidgets.QPushButton(MainWidget)
self.removeBut.setMinimumSize(QtCore.QSize(75, 0))
self.removeBut.setObjectName("removeBut")
self.horizontalLayout.addWidget(self.removeBut)
self.gridLayout_2.addLayout(self.horizontalLayout, 1, 0, 1, 1)
self.retranslateUi(MainWidget)
QtCore.QMetaObject.connectSlotsByName(MainWidget)
def retranslateUi(self, MainWidget):
_translate = QtCore.QCoreApplication.translate
MainWidget.setWindowTitle(_translate("MainWidget", "LinVAM"))
self.listeningChk.setText(_translate("MainWidget", "Enable Listening"))
self.groupBox.setTitle(_translate("MainWidget", "Voice Volume"))
self.sliderVolume.setToolTip(_translate("MainWidget", "Change voice volume"))
self.ok.setText(_translate("MainWidget", "OK"))
self.cancel.setText(_translate("MainWidget", "Cancel"))
self.label.setText(_translate("MainWidget", "Profile:"))
self.addBut.setText(_translate("MainWidget", "Add"))
self.editBut.setText(_translate("MainWidget", "Edit"))
self.copyBut.setToolTip(_translate("MainWidget", "Copy currently selected profile"))
self.copyBut.setText(_translate("MainWidget", "Copy"))
self.removeBut.setText(_translate("MainWidget", "Remove"))