-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.py
108 lines (101 loc) · 5.83 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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI\gui.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# 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(314, 341)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.COMList = QtWidgets.QComboBox(self.centralwidget)
self.COMList.setGeometry(QtCore.QRect(10, 10, 71, 31))
self.COMList.setObjectName("COMList")
self.connectButton = QtWidgets.QPushButton(self.centralwidget)
self.connectButton.setGeometry(QtCore.QRect(200, 10, 93, 28))
self.connectButton.setObjectName("connectButton")
self.heightLCD = QtWidgets.QLCDNumber(self.centralwidget)
self.heightLCD.setGeometry(QtCore.QRect(10, 60, 131, 51))
self.heightLCD.setObjectName("heightLCD")
self.refreshButton = QtWidgets.QPushButton(self.centralwidget)
self.refreshButton.setGeometry(QtCore.QRect(100, 10, 93, 28))
self.refreshButton.setObjectName("refreshButton")
self.button1 = QtWidgets.QPushButton(self.centralwidget)
self.button1.setGeometry(QtCore.QRect(20, 140, 51, 51))
self.button1.setObjectName("button1")
self.button2 = QtWidgets.QPushButton(self.centralwidget)
self.button2.setGeometry(QtCore.QRect(90, 140, 51, 51))
self.button2.setObjectName("button2")
self.button3 = QtWidgets.QPushButton(self.centralwidget)
self.button3.setGeometry(QtCore.QRect(160, 140, 51, 51))
self.button3.setObjectName("button3")
self.button4 = QtWidgets.QPushButton(self.centralwidget)
self.button4.setGeometry(QtCore.QRect(230, 140, 51, 51))
self.button4.setObjectName("button4")
self.upButton = QtWidgets.QPushButton(self.centralwidget)
self.upButton.setGeometry(QtCore.QRect(160, 60, 51, 51))
self.upButton.setObjectName("upButton")
self.downButton = QtWidgets.QPushButton(self.centralwidget)
self.downButton.setGeometry(QtCore.QRect(230, 60, 51, 51))
self.downButton.setObjectName("downButton")
self.preset1 = QtWidgets.QLCDNumber(self.centralwidget)
self.preset1.setGeometry(QtCore.QRect(20, 200, 51, 23))
self.preset1.setObjectName("preset1")
self.preset2 = QtWidgets.QLCDNumber(self.centralwidget)
self.preset2.setGeometry(QtCore.QRect(90, 200, 51, 23))
self.preset2.setObjectName("preset2")
self.preset3 = QtWidgets.QLCDNumber(self.centralwidget)
self.preset3.setGeometry(QtCore.QRect(160, 200, 51, 23))
self.preset3.setObjectName("preset3")
self.preset4 = QtWidgets.QLCDNumber(self.centralwidget)
self.preset4.setGeometry(QtCore.QRect(230, 200, 51, 23))
self.preset4.setObjectName("preset4")
self.stopButton = QtWidgets.QPushButton(self.centralwidget)
self.stopButton.setGeometry(QtCore.QRect(20, 240, 261, 41))
self.stopButton.setObjectName("stopButton")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 314, 26))
self.menubar.setObjectName("menubar")
self.menuSettings = QtWidgets.QMenu(self.menubar)
self.menuSettings.setObjectName("menuSettings")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionSet_Position_1 = QtWidgets.QAction(MainWindow)
self.actionSet_Position_1.setObjectName("actionSet_Position_1")
self.actionSet_Position_2 = QtWidgets.QAction(MainWindow)
self.actionSet_Position_2.setObjectName("actionSet_Position_2")
self.actionSet_Position_3 = QtWidgets.QAction(MainWindow)
self.actionSet_Position_3.setObjectName("actionSet_Position_3")
self.actionSet_Position_4 = QtWidgets.QAction(MainWindow)
self.actionSet_Position_4.setObjectName("actionSet_Position_4")
self.menuSettings.addAction(self.actionSet_Position_1)
self.menuSettings.addAction(self.actionSet_Position_2)
self.menuSettings.addAction(self.actionSet_Position_3)
self.menuSettings.addAction(self.actionSet_Position_4)
self.menubar.addAction(self.menuSettings.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.connectButton.setText(_translate("MainWindow", "Connect"))
self.refreshButton.setText(_translate("MainWindow", "Refresh"))
self.button1.setText(_translate("MainWindow", "1"))
self.button2.setText(_translate("MainWindow", "2"))
self.button3.setText(_translate("MainWindow", "3"))
self.button4.setText(_translate("MainWindow", "4"))
self.upButton.setText(_translate("MainWindow", "↑"))
self.downButton.setText(_translate("MainWindow", "↓"))
self.stopButton.setText(_translate("MainWindow", "STOP"))
self.menuSettings.setTitle(_translate("MainWindow", "Settings"))
self.actionSet_Position_1.setText(_translate("MainWindow", "Set Position 1"))
self.actionSet_Position_2.setText(_translate("MainWindow", "Set Position 2"))
self.actionSet_Position_3.setText(_translate("MainWindow", "Set Position 3"))
self.actionSet_Position_4.setText(_translate("MainWindow", "Set Position 4"))