代码拉取完成,页面将自动刷新
# Form implementation generated from reading ui file 'main_form.ui'
#
# Created by: PyQt6 UI code generator 6.2.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1095, 753)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.tableView_devlist = QtWidgets.QTableView(self.centralwidget)
self.tableView_devlist.setGeometry(QtCore.QRect(10, 230, 741, 280))
self.tableView_devlist.setObjectName("tableView_devlist")
self.textEdit_log = QtWidgets.QTextEdit(self.centralwidget)
self.textEdit_log.setGeometry(QtCore.QRect(10, 520, 741, 161))
self.textEdit_log.setObjectName("textEdit_log")
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox.setGeometry(QtCore.QRect(460, 80, 291, 61))
self.groupBox.setObjectName("groupBox")
self.layoutWidget = QtWidgets.QWidget(self.groupBox)
self.layoutWidget.setGeometry(QtCore.QRect(8, 20, 271, 35))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.layoutWidget)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_4 = QtWidgets.QLabel(self.layoutWidget)
self.label_4.setObjectName("label_4")
self.horizontalLayout_6.addWidget(self.label_4)
self.lineEdit_2 = QtWidgets.QLineEdit(self.layoutWidget)
self.lineEdit_2.setObjectName("lineEdit_2")
self.horizontalLayout_6.addWidget(self.lineEdit_2)
self.button_send_key = QtWidgets.QPushButton(self.layoutWidget)
self.button_send_key.setObjectName("button_send_key")
self.horizontalLayout_6.addWidget(self.button_send_key)
self.layoutWidget1 = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget1.setGeometry(QtCore.QRect(10, 90, 441, 51))
self.layoutWidget1.setObjectName("layoutWidget1")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.layoutWidget1)
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_3.setSpacing(1)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.button_get_device_screenshot = QtWidgets.QPushButton(self.layoutWidget1)
self.button_get_device_screenshot.setMaximumSize(QtCore.QSize(60, 16777215))
self.button_get_device_screenshot.setObjectName("button_get_device_screenshot")
self.horizontalLayout_3.addWidget(self.button_get_device_screenshot)
self.checkBox_gzip = QtWidgets.QCheckBox(self.layoutWidget1)
self.checkBox_gzip.setMaximumSize(QtCore.QSize(60, 16777215))
self.checkBox_gzip.setObjectName("checkBox_gzip")
self.horizontalLayout_3.addWidget(self.checkBox_gzip)
self.checkBox_binary = QtWidgets.QCheckBox(self.layoutWidget1)
self.checkBox_binary.setMaximumSize(QtCore.QSize(70, 16777215))
self.checkBox_binary.setObjectName("checkBox_binary")
self.horizontalLayout_3.addWidget(self.checkBox_binary)
self.checkBox_sync = QtWidgets.QCheckBox(self.layoutWidget1)
self.checkBox_sync.setMaximumSize(QtCore.QSize(55, 16777215))
self.checkBox_sync.setObjectName("checkBox_sync")
self.horizontalLayout_3.addWidget(self.checkBox_sync)
self.button_loop_device_screenshot = QtWidgets.QPushButton(self.layoutWidget1)
self.button_loop_device_screenshot.setMinimumSize(QtCore.QSize(0, 0))
self.button_loop_device_screenshot.setMaximumSize(QtCore.QSize(65, 16777215))
self.button_loop_device_screenshot.setObjectName("button_loop_device_screenshot")
self.horizontalLayout_3.addWidget(self.button_loop_device_screenshot)
self.spinBox_delayed = QtWidgets.QSpinBox(self.layoutWidget1)
self.spinBox_delayed.setMaximumSize(QtCore.QSize(50, 16777215))
self.spinBox_delayed.setMinimum(10)
self.spinBox_delayed.setMaximum(1000)
self.spinBox_delayed.setSingleStep(10)
self.spinBox_delayed.setProperty("value", 100)
self.spinBox_delayed.setObjectName("spinBox_delayed")
self.horizontalLayout_3.addWidget(self.spinBox_delayed)
self.label_3 = QtWidgets.QLabel(self.layoutWidget1)
self.label_3.setMaximumSize(QtCore.QSize(30, 16777215))
self.label_3.setObjectName("label_3")
self.horizontalLayout_3.addWidget(self.label_3)
self.button_stop_screenshot = QtWidgets.QPushButton(self.layoutWidget1)
self.button_stop_screenshot.setMaximumSize(QtCore.QSize(65, 16777215))
self.button_stop_screenshot.setObjectName("button_stop_screenshot")
self.horizontalLayout_3.addWidget(self.button_stop_screenshot)
self.layoutWidget2 = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget2.setGeometry(QtCore.QRect(10, 10, 741, 38))
self.layoutWidget2.setObjectName("layoutWidget2")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget2)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.button_get_device_list = QtWidgets.QPushButton(self.layoutWidget2)
self.button_get_device_list.setObjectName("button_get_device_list")
self.horizontalLayout.addWidget(self.button_get_device_list)
self.button_get_devicemodel_list = QtWidgets.QPushButton(self.layoutWidget2)
self.button_get_devicemodel_list.setObjectName("button_get_devicemodel_list")
self.horizontalLayout.addWidget(self.button_get_devicemodel_list)
self.layoutWidget3 = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget3.setGeometry(QtCore.QRect(10, 50, 741, 38))
self.layoutWidget3.setObjectName("layoutWidget3")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget3)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.button_get_usb_list = QtWidgets.QPushButton(self.layoutWidget3)
self.button_get_usb_list.setObjectName("button_get_usb_list")
self.horizontalLayout_2.addWidget(self.button_get_usb_list)
self.comboBox_3 = QtWidgets.QComboBox(self.layoutWidget3)
self.comboBox_3.setMinimumSize(QtCore.QSize(150, 0))
self.comboBox_3.setObjectName("comboBox_3")
self.horizontalLayout_2.addWidget(self.comboBox_3)
self.button_set_dev_usb_id = QtWidgets.QPushButton(self.layoutWidget3)
self.button_set_dev_usb_id.setObjectName("button_set_dev_usb_id")
self.horizontalLayout_2.addWidget(self.button_set_dev_usb_id)
self.button_del_dev = QtWidgets.QPushButton(self.layoutWidget3)
self.button_del_dev.setObjectName("button_del_dev")
self.horizontalLayout_2.addWidget(self.button_del_dev)
self.lineEdit = QtWidgets.QLineEdit(self.layoutWidget3)
self.lineEdit.setObjectName("lineEdit")
self.horizontalLayout_2.addWidget(self.lineEdit)
self.button_set_dev_name = QtWidgets.QPushButton(self.layoutWidget3)
self.button_set_dev_name.setObjectName("button_set_dev_name")
self.horizontalLayout_2.addWidget(self.button_set_dev_name)
self.layoutWidget4 = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget4.setGeometry(QtCore.QRect(10, 140, 741, 81))
self.layoutWidget4.setObjectName("layoutWidget4")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.layoutWidget4)
self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.groupBox_2 = QtWidgets.QGroupBox(self.layoutWidget4)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
self.groupBox_2.setSizePolicy(sizePolicy)
self.groupBox_2.setMinimumSize(QtCore.QSize(280, 0))
self.groupBox_2.setMaximumSize(QtCore.QSize(280, 16777215))
self.groupBox_2.setObjectName("groupBox_2")
self.layoutWidget5 = QtWidgets.QWidget(self.groupBox_2)
self.layoutWidget5.setGeometry(QtCore.QRect(20, 20, 248, 51))
self.layoutWidget5.setObjectName("layoutWidget5")
self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget5)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.radioButton_1 = QtWidgets.QRadioButton(self.layoutWidget5)
self.radioButton_1.setAutoFillBackground(False)
self.radioButton_1.setChecked(True)
self.radioButton_1.setAutoRepeat(False)
self.radioButton_1.setObjectName("radioButton_1")
self.gridLayout.addWidget(self.radioButton_1, 0, 0, 1, 1)
self.radioButton_3 = QtWidgets.QRadioButton(self.layoutWidget5)
self.radioButton_3.setAutoFillBackground(False)
self.radioButton_3.setAutoRepeat(False)
self.radioButton_3.setObjectName("radioButton_3")
self.gridLayout.addWidget(self.radioButton_3, 0, 1, 1, 1)
self.radioButton_5 = QtWidgets.QRadioButton(self.layoutWidget5)
self.radioButton_5.setAutoFillBackground(False)
self.radioButton_5.setAutoRepeat(False)
self.radioButton_5.setObjectName("radioButton_5")
self.gridLayout.addWidget(self.radioButton_5, 0, 2, 1, 1)
self.button_mouse_events = QtWidgets.QPushButton(self.layoutWidget5)
self.button_mouse_events.setAutoDefault(False)
self.button_mouse_events.setObjectName("button_mouse_events")
self.gridLayout.addWidget(self.button_mouse_events, 0, 3, 2, 1)
self.radioButton_2 = QtWidgets.QRadioButton(self.layoutWidget5)
self.radioButton_2.setAutoFillBackground(False)
self.radioButton_2.setAutoRepeat(False)
self.radioButton_2.setObjectName("radioButton_2")
self.gridLayout.addWidget(self.radioButton_2, 1, 0, 1, 1)
self.radioButton_4 = QtWidgets.QRadioButton(self.layoutWidget5)
self.radioButton_4.setAutoFillBackground(False)
self.radioButton_4.setAutoRepeat(False)
self.radioButton_4.setObjectName("radioButton_4")
self.gridLayout.addWidget(self.radioButton_4, 1, 1, 1, 1)
self.radioButton_6 = QtWidgets.QRadioButton(self.layoutWidget5)
self.radioButton_6.setAutoFillBackground(False)
self.radioButton_6.setAutoRepeat(False)
self.radioButton_6.setObjectName("radioButton_6")
self.gridLayout.addWidget(self.radioButton_6, 1, 2, 1, 1)
self.horizontalLayout_5.addWidget(self.groupBox_2)
self.groupBox_3 = QtWidgets.QGroupBox(self.layoutWidget4)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
self.groupBox_3.setSizePolicy(sizePolicy)
self.groupBox_3.setMinimumSize(QtCore.QSize(300, 0))
self.groupBox_3.setMaximumSize(QtCore.QSize(450, 16777215))
self.groupBox_3.setObjectName("groupBox_3")
self.layoutWidget6 = QtWidgets.QWidget(self.groupBox_3)
self.layoutWidget6.setGeometry(QtCore.QRect(20, 30, 418, 32))
self.layoutWidget6.setObjectName("layoutWidget6")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.layoutWidget6)
self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMaximumSize)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_5 = QtWidgets.QLabel(self.layoutWidget6)
self.label_5.setObjectName("label_5")
self.horizontalLayout_4.addWidget(self.label_5)
self.comboBox_4 = QtWidgets.QComboBox(self.layoutWidget6)
self.comboBox_4.setMinimumSize(QtCore.QSize(0, 0))
self.comboBox_4.setObjectName("comboBox_4")
self.horizontalLayout_4.addWidget(self.comboBox_4)
self.label_6 = QtWidgets.QLabel(self.layoutWidget6)
self.label_6.setObjectName("label_6")
self.horizontalLayout_4.addWidget(self.label_6)
self.lineEdit_3 = QtWidgets.QLineEdit(self.layoutWidget6)
self.lineEdit_3.setMinimumSize(QtCore.QSize(30, 0))
self.lineEdit_3.setObjectName("lineEdit_3")
self.horizontalLayout_4.addWidget(self.lineEdit_3)
self.label_7 = QtWidgets.QLabel(self.layoutWidget6)
self.label_7.setObjectName("label_7")
self.horizontalLayout_4.addWidget(self.label_7)
self.lineEdit_4 = QtWidgets.QLineEdit(self.layoutWidget6)
self.lineEdit_4.setMinimumSize(QtCore.QSize(30, 0))
self.lineEdit_4.setObjectName("lineEdit_4")
self.horizontalLayout_4.addWidget(self.lineEdit_4)
self.label_8 = QtWidgets.QLabel(self.layoutWidget6)
self.label_8.setObjectName("label_8")
self.horizontalLayout_4.addWidget(self.label_8)
self.comboBox_5 = QtWidgets.QComboBox(self.layoutWidget6)
self.comboBox_5.setObjectName("comboBox_5")
self.horizontalLayout_4.addWidget(self.comboBox_5)
self.horizontalLayout_5.addWidget(self.groupBox_3)
self.groupBox_4 = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_4.setGeometry(QtCore.QRect(760, 0, 321, 681))
self.groupBox_4.setObjectName("groupBox_4")
self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_4)
self.verticalLayout.setObjectName("verticalLayout")
self.graphicsView = QtWidgets.QGraphicsView(self.groupBox_4)
self.graphicsView.setObjectName("graphicsView")
self.verticalLayout.addWidget(self.graphicsView)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1095, 24))
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"))
self.groupBox.setTitle(_translate("MainWindow", "键盘操作"))
self.label_4.setText(_translate("MainWindow", "输入字符(不支持中文)"))
self.button_send_key.setText(_translate("MainWindow", "发送"))
self.button_get_device_screenshot.setText(_translate("MainWindow", "截屏"))
self.checkBox_gzip.setText(_translate("MainWindow", "压缩"))
self.checkBox_binary.setText(_translate("MainWindow", "二进制"))
self.checkBox_sync.setText(_translate("MainWindow", "同步"))
self.button_loop_device_screenshot.setText(_translate("MainWindow", "循环截屏"))
self.label_3.setText(_translate("MainWindow", "毫秒"))
self.button_stop_screenshot.setText(_translate("MainWindow", "停止截取"))
self.button_get_device_list.setText(_translate("MainWindow", "获取设备列表"))
self.button_get_devicemodel_list.setText(_translate("MainWindow", "获取支持型号列表"))
self.button_get_usb_list.setText(_translate("MainWindow", "获取usb硬件列表"))
self.button_set_dev_usb_id.setText(_translate("MainWindow", "设置硬件id"))
self.button_del_dev.setText(_translate("MainWindow", "删除设备"))
self.button_set_dev_name.setText(_translate("MainWindow", "修改名称"))
self.groupBox_2.setTitle(_translate("MainWindow", "鼠标操作"))
self.radioButton_1.setText(_translate("MainWindow", "单击"))
self.radioButton_3.setText(_translate("MainWindow", "按下"))
self.radioButton_5.setText(_translate("MainWindow", "移动"))
self.button_mouse_events.setText(_translate("MainWindow", "执行"))
self.radioButton_2.setText(_translate("MainWindow", "滑动"))
self.radioButton_4.setText(_translate("MainWindow", "弹起"))
self.radioButton_6.setText(_translate("MainWindow", "复位"))
self.groupBox_3.setTitle(_translate("MainWindow", "鼠标操作参数"))
self.label_5.setText(_translate("MainWindow", "按键"))
self.label_6.setText(_translate("MainWindow", "X"))
self.label_7.setText(_translate("MainWindow", "Y"))
self.label_8.setText(_translate("MainWindow", "滑动方向"))
self.groupBox_4.setTitle(_translate("MainWindow", "屏幕"))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。