-
Notifications
You must be signed in to change notification settings - Fork 0
/
piano_ui.py
88 lines (81 loc) · 3.82 KB
/
piano_ui.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'piano_ui.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(418, 160)
Form.setMaximumSize(QtCore.QSize(418, 160))
self.C = QtWidgets.QPushButton(Form)
self.C.setGeometry(QtCore.QRect(0, 0, 61, 161))
self.C.setStyleSheet("background-color: rgb(255, 255, 255);")
self.C.setText("")
self.C.setObjectName("C")
self.D = QtWidgets.QPushButton(Form)
self.D.setGeometry(QtCore.QRect(60, 0, 61, 161))
self.D.setStyleSheet("background-color: rgb(255, 255, 255);")
self.D.setText("")
self.D.setObjectName("D")
self.E = QtWidgets.QPushButton(Form)
self.E.setGeometry(QtCore.QRect(120, 0, 61, 161))
self.E.setStyleSheet("background-color: rgb(255, 255, 255);")
self.E.setText("")
self.E.setObjectName("E")
self.F = QtWidgets.QPushButton(Form)
self.F.setGeometry(QtCore.QRect(180, 0, 61, 161))
self.F.setStyleSheet("background-color: rgb(255, 255, 255);")
self.F.setText("")
self.F.setObjectName("F")
self.G = QtWidgets.QPushButton(Form)
self.G.setGeometry(QtCore.QRect(240, 0, 61, 161))
self.G.setStyleSheet("background-color: rgb(255, 255, 255);")
self.G.setText("")
self.G.setObjectName("G")
self.A = QtWidgets.QPushButton(Form)
self.A.setGeometry(QtCore.QRect(300, 0, 61, 161))
self.A.setLayoutDirection(QtCore.Qt.LeftToRight)
self.A.setAutoFillBackground(False)
self.A.setStyleSheet("background-color: rgb(255, 255, 255);")
self.A.setText("")
self.A.setObjectName("A")
self.C_sharp = QtWidgets.QPushButton(Form)
self.C_sharp.setGeometry(QtCore.QRect(40, 0, 41, 91))
self.C_sharp.setStyleSheet("background-color: rgb(0, 0, 0);")
self.C_sharp.setObjectName("C_sharp")
self.F_sharp = QtWidgets.QPushButton(Form)
self.F_sharp.setGeometry(QtCore.QRect(220, 0, 41, 91))
self.F_sharp.setStyleSheet("background-color: rgb(0, 0, 0);")
self.F_sharp.setObjectName("F_sharp")
self.G_sharp = QtWidgets.QPushButton(Form)
self.G_sharp.setGeometry(QtCore.QRect(280, 0, 41, 91))
self.G_sharp.setStyleSheet("background-color: rgb(0, 0, 0);")
self.G_sharp.setObjectName("G_sharp")
self.D_sharp = QtWidgets.QPushButton(Form)
self.D_sharp.setGeometry(QtCore.QRect(100, 0, 41, 91))
self.D_sharp.setStyleSheet("background-color: rgb(0, 0, 0);")
self.D_sharp.setObjectName("D_sharp")
self.B = QtWidgets.QPushButton(Form)
self.B.setGeometry(QtCore.QRect(360, 0, 61, 161))
self.B.setLayoutDirection(QtCore.Qt.LeftToRight)
self.B.setAutoFillBackground(False)
self.B.setStyleSheet("background-color: rgb(255, 255, 255);")
self.B.setText("")
self.B.setObjectName("B")
self.A_sharp = QtWidgets.QPushButton(Form)
self.A_sharp.setGeometry(QtCore.QRect(340, 0, 41, 91))
self.A_sharp.setStyleSheet("background-color: rgb(0, 0, 0);")
self.A_sharp.setObjectName("A_sharp")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Пианино"))
self.C_sharp.setText(_translate("Form", "D#"))
self.F_sharp.setText(_translate("Form", "F#"))
self.G_sharp.setText(_translate("Form", "G#"))
self.D_sharp.setText(_translate("Form", "D#"))
self.A_sharp.setText(_translate("Form", "G#"))