2021-08-17 17:01:19 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'main_ui.ui'
|
|
|
|
#
|
|
|
|
# Created by: PyQt5 UI code generator 5.15.2
|
|
|
|
#
|
|
|
|
# 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")
|
2021-08-25 08:23:23 +00:00
|
|
|
MainWindow.resize(800, 749)
|
2021-08-17 17:01:19 +00:00
|
|
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
|
|
|
self.centralwidget.setObjectName("centralwidget")
|
|
|
|
self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget)
|
|
|
|
self.gridLayoutWidget.setGeometry(QtCore.QRect(180, 20, 581, 361))
|
|
|
|
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
|
|
|
|
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
|
|
|
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
self.gridLayout.setObjectName("gridLayout")
|
2021-08-24 07:32:57 +00:00
|
|
|
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
|
|
|
|
self.groupBox.setGeometry(QtCore.QRect(20, 420, 241, 61))
|
|
|
|
self.groupBox.setObjectName("groupBox")
|
|
|
|
self.horizontalLayoutWidget = QtWidgets.QWidget(self.groupBox)
|
|
|
|
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 20, 221, 31))
|
|
|
|
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
|
|
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
|
|
|
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
self.horizontalLayout.setSpacing(1)
|
|
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
|
|
|
self.wifi_IP_lineEdit = QtWidgets.QLineEdit(self.horizontalLayoutWidget)
|
|
|
|
self.wifi_IP_lineEdit.setObjectName("wifi_IP_lineEdit")
|
|
|
|
self.horizontalLayout.addWidget(self.wifi_IP_lineEdit)
|
|
|
|
self.wifi_config_pushButton = QtWidgets.QPushButton(self.horizontalLayoutWidget)
|
|
|
|
self.wifi_config_pushButton.setObjectName("wifi_config_pushButton")
|
|
|
|
self.horizontalLayout.addWidget(self.wifi_config_pushButton)
|
|
|
|
self.wifi_recv_open_pushButton = QtWidgets.QPushButton(self.centralwidget)
|
|
|
|
self.wifi_recv_open_pushButton.setEnabled(False)
|
|
|
|
self.wifi_recv_open_pushButton.setGeometry(QtCore.QRect(180, 380, 93, 28))
|
|
|
|
self.wifi_recv_open_pushButton.setObjectName("wifi_recv_open_pushButton")
|
2021-08-25 08:23:23 +00:00
|
|
|
self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget)
|
|
|
|
self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(570, 440, 104, 31))
|
|
|
|
self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
|
|
|
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
|
|
|
|
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
|
|
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
|
|
self.label = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
|
|
|
|
self.label.setObjectName("label")
|
|
|
|
self.horizontalLayout_2.addWidget(self.label)
|
|
|
|
self.velocity_lineEdit = QtWidgets.QLineEdit(self.horizontalLayoutWidget_2)
|
|
|
|
self.velocity_lineEdit.setObjectName("velocity_lineEdit")
|
|
|
|
self.horizontalLayout_2.addWidget(self.velocity_lineEdit)
|
|
|
|
self.velocity_horizontalSlider = QtWidgets.QSlider(self.centralwidget)
|
|
|
|
self.velocity_horizontalSlider.setGeometry(QtCore.QRect(410, 420, 261, 22))
|
|
|
|
self.velocity_horizontalSlider.setMinimum(-150)
|
|
|
|
self.velocity_horizontalSlider.setMaximum(150)
|
|
|
|
self.velocity_horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
|
|
|
|
self.velocity_horizontalSlider.setTickPosition(QtWidgets.QSlider.TicksAbove)
|
|
|
|
self.velocity_horizontalSlider.setTickInterval(10)
|
|
|
|
self.velocity_horizontalSlider.setObjectName("velocity_horizontalSlider")
|
|
|
|
self.horizontalLayoutWidget_3 = QtWidgets.QWidget(self.centralwidget)
|
|
|
|
self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(400, 440, 134, 31))
|
|
|
|
self.horizontalLayoutWidget_3.setObjectName("horizontalLayoutWidget_3")
|
|
|
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_3)
|
|
|
|
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
|
|
|
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
|
|
|
self.label_2 = QtWidgets.QLabel(self.horizontalLayoutWidget_3)
|
|
|
|
self.label_2.setObjectName("label_2")
|
|
|
|
self.horizontalLayout_3.addWidget(self.label_2)
|
|
|
|
self.angle_lineEdit = QtWidgets.QLineEdit(self.horizontalLayoutWidget_3)
|
|
|
|
self.angle_lineEdit.setObjectName("angle_lineEdit")
|
|
|
|
self.horizontalLayout_3.addWidget(self.angle_lineEdit)
|
2021-08-17 17:01:19 +00:00
|
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
|
|
self.menubar = QtWidgets.QMenuBar(MainWindow)
|
|
|
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 26))
|
|
|
|
self.menubar.setObjectName("menubar")
|
|
|
|
MainWindow.setMenuBar(self.menubar)
|
|
|
|
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"))
|
2021-08-24 07:32:57 +00:00
|
|
|
self.groupBox.setTitle(_translate("MainWindow", "wifi_IP"))
|
|
|
|
self.wifi_IP_lineEdit.setText(_translate("MainWindow", "192.168.4.2"))
|
|
|
|
self.wifi_config_pushButton.setText(_translate("MainWindow", "设置"))
|
|
|
|
self.wifi_recv_open_pushButton.setText(_translate("MainWindow", "打开"))
|
2021-08-25 08:23:23 +00:00
|
|
|
self.label.setText(_translate("MainWindow", "速度:"))
|
|
|
|
self.velocity_lineEdit.setText(_translate("MainWindow", "0"))
|
|
|
|
self.label_2.setText(_translate("MainWindow", "目标角度:"))
|
|
|
|
self.angle_lineEdit.setText(_translate("MainWindow", "149"))
|