|
|
|
@ -0,0 +1,97 @@
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'tello_UI.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_Form(object):
|
|
|
|
|
def setupUi(self, Form):
|
|
|
|
|
Form.setObjectName("Form")
|
|
|
|
|
Form.resize(1022, 618)
|
|
|
|
|
self.groupBox_4 = QtWidgets.QGroupBox(Form)
|
|
|
|
|
self.groupBox_4.setGeometry(QtCore.QRect(670, 567, 350, 50))
|
|
|
|
|
self.groupBox_4.setMaximumSize(QtCore.QSize(350, 50))
|
|
|
|
|
self.groupBox_4.setObjectName("groupBox_4")
|
|
|
|
|
self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox_4)
|
|
|
|
|
self.lineEdit_3.setGeometry(QtCore.QRect(10, 20, 331, 20))
|
|
|
|
|
self.lineEdit_3.setObjectName("lineEdit_3")
|
|
|
|
|
self.groupBox_2 = QtWidgets.QGroupBox(Form)
|
|
|
|
|
self.groupBox_2.setGeometry(QtCore.QRect(670, 156, 350, 405))
|
|
|
|
|
self.groupBox_2.setObjectName("groupBox_2")
|
|
|
|
|
self.pushButton = QtWidgets.QPushButton(self.groupBox_2)
|
|
|
|
|
self.pushButton.setGeometry(QtCore.QRect(150, 120, 71, 71))
|
|
|
|
|
self.pushButton.setText("")
|
|
|
|
|
icon = QtGui.QIcon()
|
|
|
|
|
icon.addPixmap(QtGui.QPixmap("tello_png/up.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
|
self.pushButton.setIcon(icon)
|
|
|
|
|
self.pushButton.setIconSize(QtCore.QSize(70, 100))
|
|
|
|
|
self.pushButton.setObjectName("pushButton")
|
|
|
|
|
self.pushButton_2 = QtWidgets.QPushButton(self.groupBox_2)
|
|
|
|
|
self.pushButton_2.setGeometry(QtCore.QRect(70, 200, 71, 71))
|
|
|
|
|
self.pushButton_2.setText("")
|
|
|
|
|
icon1 = QtGui.QIcon()
|
|
|
|
|
icon1.addPixmap(QtGui.QPixmap("tello_png/left.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
|
self.pushButton_2.setIcon(icon1)
|
|
|
|
|
self.pushButton_2.setIconSize(QtCore.QSize(70, 100))
|
|
|
|
|
self.pushButton_2.setObjectName("pushButton_2")
|
|
|
|
|
self.pushButton_4 = QtWidgets.QPushButton(self.groupBox_2)
|
|
|
|
|
self.pushButton_4.setGeometry(QtCore.QRect(230, 200, 71, 71))
|
|
|
|
|
self.pushButton_4.setText("")
|
|
|
|
|
icon2 = QtGui.QIcon()
|
|
|
|
|
icon2.addPixmap(QtGui.QPixmap("tello_png/right.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
|
self.pushButton_4.setIcon(icon2)
|
|
|
|
|
self.pushButton_4.setIconSize(QtCore.QSize(70, 100))
|
|
|
|
|
self.pushButton_4.setObjectName("pushButton_4")
|
|
|
|
|
self.pushButton_5 = QtWidgets.QPushButton(self.groupBox_2)
|
|
|
|
|
self.pushButton_5.setGeometry(QtCore.QRect(150, 200, 71, 71))
|
|
|
|
|
self.pushButton_5.setText("")
|
|
|
|
|
icon3 = QtGui.QIcon()
|
|
|
|
|
icon3.addPixmap(QtGui.QPixmap("tello_png/return.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
|
self.pushButton_5.setIcon(icon3)
|
|
|
|
|
self.pushButton_5.setIconSize(QtCore.QSize(70, 100))
|
|
|
|
|
self.pushButton_5.setObjectName("pushButton_5")
|
|
|
|
|
self.pushButton_3 = QtWidgets.QPushButton(self.groupBox_2)
|
|
|
|
|
self.pushButton_3.setGeometry(QtCore.QRect(70, 20, 231, 91))
|
|
|
|
|
icon4 = QtGui.QIcon()
|
|
|
|
|
icon4.addPixmap(QtGui.QPixmap("tello_png/qifei.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
|
self.pushButton_3.setIcon(icon4)
|
|
|
|
|
self.pushButton_3.setIconSize(QtCore.QSize(150, 150))
|
|
|
|
|
self.pushButton_3.setObjectName("pushButton_3")
|
|
|
|
|
self.pushButton_6 = QtWidgets.QPushButton(self.groupBox_2)
|
|
|
|
|
self.pushButton_6.setGeometry(QtCore.QRect(70, 290, 231, 91))
|
|
|
|
|
icon5 = QtGui.QIcon()
|
|
|
|
|
icon5.addPixmap(QtGui.QPixmap("tello_png/jiangluo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
|
self.pushButton_6.setIcon(icon5)
|
|
|
|
|
self.pushButton_6.setIconSize(QtCore.QSize(150, 150))
|
|
|
|
|
self.pushButton_6.setObjectName("pushButton_6")
|
|
|
|
|
self.groupBox = QtWidgets.QGroupBox(Form)
|
|
|
|
|
self.groupBox.setGeometry(QtCore.QRect(670, 0, 350, 150))
|
|
|
|
|
self.groupBox.setMaximumSize(QtCore.QSize(16777215, 150))
|
|
|
|
|
self.groupBox.setObjectName("groupBox")
|
|
|
|
|
self.lineEdit = QtWidgets.QLineEdit(self.groupBox)
|
|
|
|
|
self.lineEdit.setGeometry(QtCore.QRect(20, 20, 311, 41))
|
|
|
|
|
self.lineEdit.setObjectName("lineEdit")
|
|
|
|
|
self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox)
|
|
|
|
|
self.lineEdit_2.setGeometry(QtCore.QRect(20, 70, 311, 41))
|
|
|
|
|
self.lineEdit_2.setObjectName("lineEdit_2")
|
|
|
|
|
|
|
|
|
|
self.retranslateUi(Form)
|
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
|
|
|
|
|
|
|
|
|
def retranslateUi(self, Form):
|
|
|
|
|
_translate = QtCore.QCoreApplication.translate
|
|
|
|
|
Form.setWindowTitle(_translate("Form", "Form"))
|
|
|
|
|
self.groupBox_4.setTitle(_translate("Form", "连接状态"))
|
|
|
|
|
self.groupBox_2.setTitle(_translate("Form", "控制面板"))
|
|
|
|
|
self.pushButton_3.setText(_translate("Form", "起飞"))
|
|
|
|
|
self.pushButton_6.setText(_translate("Form", "降落"))
|
|
|
|
|
self.groupBox.setTitle(_translate("Form", "无人机状态"))
|
|
|
|
|
self.lineEdit.setText(_translate("Form", "剩余电量:"))
|
|
|
|
|
self.lineEdit_2.setText(_translate("Form", "WIFI强度:"))
|