-
Notifications
You must be signed in to change notification settings - Fork 2
/
GUI.py
116 lines (109 loc) · 6.82 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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/thanos/Qt/Guitar Tuna/guitarTunaDialog.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(422, 271)
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName("verticalLayout")
spacerItem = QtWidgets.QSpacerItem(20, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem)
self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
self.horizontalLayout_15.setObjectName("horizontalLayout_15")
self.curentKeyLabel_3 = QtWidgets.QLabel(Dialog)
font = QtGui.QFont()
font.setPointSize(48)
self.curentKeyLabel_3.setFont(font)
self.curentKeyLabel_3.setAlignment(QtCore.Qt.AlignCenter)
self.curentKeyLabel_3.setObjectName("curentKeyLabel_3")
self.horizontalLayout_15.addWidget(self.curentKeyLabel_3)
self.verticalLayout.addLayout(self.horizontalLayout_15)
self.horizontalLayout_16 = QtWidgets.QHBoxLayout()
self.horizontalLayout_16.setObjectName("horizontalLayout_16")
self.frequencyLabel_3 = QtWidgets.QLabel(Dialog)
self.frequencyLabel_3.setAlignment(QtCore.Qt.AlignCenter)
self.frequencyLabel_3.setObjectName("frequencyLabel_3")
self.horizontalLayout_16.addWidget(self.frequencyLabel_3)
self.verticalLayout.addLayout(self.horizontalLayout_16)
self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
self.horizontalLayout_17.setObjectName("horizontalLayout_17")
spacerItem1 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_17.addItem(spacerItem1)
self.levelLeft_Progress_3 = QtWidgets.QProgressBar(Dialog)
self.levelLeft_Progress_3.setProperty("value", 0)
self.levelLeft_Progress_3.setTextVisible(False)
self.levelLeft_Progress_3.setInvertedAppearance(True)
self.levelLeft_Progress_3.setObjectName("levelLeft_Progress_3")
self.horizontalLayout_17.addWidget(self.levelLeft_Progress_3)
self.nstructionLabel_3 = QtWidgets.QLabel(Dialog)
self.nstructionLabel_3.setAlignment(QtCore.Qt.AlignCenter)
self.nstructionLabel_3.setObjectName("nstructionLabel_3")
self.horizontalLayout_17.addWidget(self.nstructionLabel_3)
self.levelRight_Progress_3 = QtWidgets.QProgressBar(Dialog)
self.levelRight_Progress_3.setProperty("value", 0)
self.levelRight_Progress_3.setTextVisible(False)
self.levelRight_Progress_3.setInvertedAppearance(False)
self.levelRight_Progress_3.setObjectName("levelRight_Progress_3")
self.horizontalLayout_17.addWidget(self.levelRight_Progress_3)
spacerItem2 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_17.addItem(spacerItem2)
self.verticalLayout.addLayout(self.horizontalLayout_17)
self.horizontalLayout_18 = QtWidgets.QHBoxLayout()
self.horizontalLayout_18.setObjectName("horizontalLayout_18")
spacerItem3 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_18.addItem(spacerItem3)
self.instrumentChooserComboxBox_3 = QtWidgets.QComboBox(Dialog)
self.instrumentChooserComboxBox_3.setObjectName("instrumentChooserComboxBox_3")
self.instrumentChooserComboxBox_3.addItem("")
self.instrumentChooserComboxBox_3.addItem("")
self.instrumentChooserComboxBox_3.addItem("")
self.instrumentChooserComboxBox_3.addItem("")
self.horizontalLayout_18.addWidget(self.instrumentChooserComboxBox_3)
spacerItem4 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_18.addItem(spacerItem4)
self.verticalLayout.addLayout(self.horizontalLayout_18)
self.horizontalLayout_19 = QtWidgets.QHBoxLayout()
self.horizontalLayout_19.setObjectName("horizontalLayout_19")
spacerItem5 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_19.addItem(spacerItem5)
self.startBtn_3 = QtWidgets.QPushButton(Dialog)
self.startBtn_3.setObjectName("startBtn_3")
self.horizontalLayout_19.addWidget(self.startBtn_3)
spacerItem6 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_19.addItem(spacerItem6)
self.verticalLayout.addLayout(self.horizontalLayout_19)
self.horizontalLayout_20 = QtWidgets.QHBoxLayout()
self.horizontalLayout_20.setObjectName("horizontalLayout_20")
spacerItem7 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_20.addItem(spacerItem7)
self.stopBtn_3 = QtWidgets.QPushButton(Dialog)
self.stopBtn_3.setObjectName("stopBtn_3")
self.horizontalLayout_20.addWidget(self.stopBtn_3)
self.exitBtn_3 = QtWidgets.QPushButton(Dialog)
self.exitBtn_3.setObjectName("exitBtn_3")
self.horizontalLayout_20.addWidget(self.exitBtn_3)
spacerItem8 = QtWidgets.QSpacerItem(30, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_20.addItem(spacerItem8)
self.verticalLayout.addLayout(self.horizontalLayout_20)
spacerItem9 = QtWidgets.QSpacerItem(20, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem9)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Chromatic Tuner"))
self.curentKeyLabel_3.setText(_translate("Dialog", "__"))
self.frequencyLabel_3.setText(_translate("Dialog", "(0 KHz)"))
self.nstructionLabel_3.setText(_translate("Dialog", "|"))
self.instrumentChooserComboxBox_3.setItemText(0, _translate("Dialog", "Acoustic/Electric Guitar"))
self.instrumentChooserComboxBox_3.setItemText(1, _translate("Dialog", "Bass Guitar"))
self.instrumentChooserComboxBox_3.setItemText(2, _translate("Dialog", "Ukulele"))
self.instrumentChooserComboxBox_3.setItemText(3, _translate("Dialog", "Piano"))
self.startBtn_3.setText(_translate("Dialog", "Start Tuning"))
self.stopBtn_3.setText(_translate("Dialog", "Stop"))
self.exitBtn_3.setText(_translate("Dialog", "Exit"))