-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_macropad.py
171 lines (164 loc) · 9.71 KB
/
main_macropad.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\macropad_v0.1.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(783, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.toprow = QtWidgets.QHBoxLayout()
self.toprow.setObjectName("toprow")
self.buttongrid = QtWidgets.QGridLayout()
self.buttongrid.setObjectName("buttongrid")
self.pushButton_02 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_02.sizePolicy().hasHeightForWidth())
self.pushButton_02.setSizePolicy(sizePolicy)
self.pushButton_02.setObjectName("pushButton_02")
self.buttongrid.addWidget(self.pushButton_02, 0, 2, 1, 1)
self.pushButton_00 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_00.sizePolicy().hasHeightForWidth())
self.pushButton_00.setSizePolicy(sizePolicy)
self.pushButton_00.setObjectName("pushButton_00")
self.buttongrid.addWidget(self.pushButton_00, 0, 0, 1, 1)
self.pushButton_20 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_20.sizePolicy().hasHeightForWidth())
self.pushButton_20.setSizePolicy(sizePolicy)
self.pushButton_20.setObjectName("pushButton_20")
self.buttongrid.addWidget(self.pushButton_20, 2, 0, 1, 1)
self.pushButton_10 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_10.sizePolicy().hasHeightForWidth())
self.pushButton_10.setSizePolicy(sizePolicy)
self.pushButton_10.setObjectName("pushButton_10")
self.buttongrid.addWidget(self.pushButton_10, 1, 0, 1, 1)
self.pushButton_01 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_01.sizePolicy().hasHeightForWidth())
self.pushButton_01.setSizePolicy(sizePolicy)
self.pushButton_01.setObjectName("pushButton_01")
self.buttongrid.addWidget(self.pushButton_01, 0, 1, 1, 1)
self.pushButton_212 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_212.sizePolicy().hasHeightForWidth())
self.pushButton_212.setSizePolicy(sizePolicy)
self.pushButton_212.setObjectName("pushButton_212")
self.buttongrid.addWidget(self.pushButton_212, 2, 1, 1, 2)
self.pushButton_11 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_11.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(100)
sizePolicy.setHeightForWidth(self.pushButton_11.sizePolicy().hasHeightForWidth())
self.pushButton_11.setSizePolicy(sizePolicy)
self.pushButton_11.setObjectName("pushButton_11")
self.buttongrid.addWidget(self.pushButton_11, 1, 1, 1, 1)
self.pushButton_12 = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_12.sizePolicy().hasHeightForWidth())
self.pushButton_12.setSizePolicy(sizePolicy)
self.pushButton_12.setObjectName("pushButton_12")
self.buttongrid.addWidget(self.pushButton_12, 1, 2, 1, 1)
self.buttongrid.setRowStretch(0, 1)
self.buttongrid.setRowStretch(1, 1)
self.buttongrid.setRowStretch(2, 1)
self.toprow.addLayout(self.buttongrid)
self.sliderlayout = QtWidgets.QHBoxLayout()
self.sliderlayout.setObjectName("sliderlayout")
self.verticalLayout_5 = QtWidgets.QVBoxLayout()
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.verticalSlider_5 = QtWidgets.QSlider(self.centralwidget)
self.verticalSlider_5.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_5.setInvertedAppearance(False)
self.verticalSlider_5.setInvertedControls(True)
self.verticalSlider_5.setObjectName("verticalSlider_5")
self.verticalLayout_5.addWidget(self.verticalSlider_5, 0, QtCore.Qt.AlignHCenter)
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setObjectName("label_5")
self.verticalLayout_5.addWidget(self.label_5, 0, QtCore.Qt.AlignHCenter)
self.sliderlayout.addLayout(self.verticalLayout_5)
self.verticalLayout_6 = QtWidgets.QVBoxLayout()
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.verticalSlider_6 = QtWidgets.QSlider(self.centralwidget)
self.verticalSlider_6.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_6.setObjectName("verticalSlider_6")
self.verticalLayout_6.addWidget(self.verticalSlider_6, 0, QtCore.Qt.AlignHCenter)
self.label_6 = QtWidgets.QLabel(self.centralwidget)
self.label_6.setObjectName("label_6")
self.verticalLayout_6.addWidget(self.label_6)
self.sliderlayout.addLayout(self.verticalLayout_6)
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.verticalSlider_4 = QtWidgets.QSlider(self.centralwidget)
self.verticalSlider_4.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_4.setObjectName("verticalSlider_4")
self.verticalLayout_4.addWidget(self.verticalSlider_4, 0, QtCore.Qt.AlignHCenter)
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setObjectName("label_4")
self.verticalLayout_4.addWidget(self.label_4, 0, QtCore.Qt.AlignHCenter)
self.sliderlayout.addLayout(self.verticalLayout_4)
self.toprow.addLayout(self.sliderlayout)
self.toprow.setStretch(0, 3)
self.toprow.setStretch(1, 1)
self.verticalLayout.addLayout(self.toprow)
self.diallayout = QtWidgets.QHBoxLayout()
self.diallayout.setObjectName("diallayout")
self.dial_3 = QtWidgets.QDial(self.centralwidget)
self.dial_3.setObjectName("dial_3")
self.diallayout.addWidget(self.dial_3)
self.dial = QtWidgets.QDial(self.centralwidget)
self.dial.setObjectName("dial")
self.diallayout.addWidget(self.dial)
self.dial_2 = QtWidgets.QDial(self.centralwidget)
self.dial_2.setObjectName("dial_2")
self.diallayout.addWidget(self.dial_2)
spacerItem = QtWidgets.QSpacerItem(53, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
self.diallayout.addItem(spacerItem)
self.lcdNumber = QtWidgets.QLCDNumber(self.centralwidget)
self.lcdNumber.setObjectName("lcdNumber")
self.diallayout.addWidget(self.lcdNumber)
self.verticalLayout.addLayout(self.diallayout)
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.pushButton_02.setText(_translate("MainWindow", "PushButton"))
self.pushButton_00.setText(_translate("MainWindow", "PushButton"))
self.pushButton_20.setText(_translate("MainWindow", "PushButton"))
self.pushButton_10.setText(_translate("MainWindow", "PushButton"))
self.pushButton_01.setText(_translate("MainWindow", "PushButton"))
self.pushButton_212.setText(_translate("MainWindow", "PushButton"))
self.pushButton_11.setText(_translate("MainWindow", "PushButton"))
self.pushButton_12.setText(_translate("MainWindow", "PushButton"))
self.label_5.setText(_translate("MainWindow", "TextLabel"))
self.label_6.setText(_translate("MainWindow", "TextLabel"))
self.label_4.setText(_translate("MainWindow", "TextLabel"))