From 32ee95ada0ed1f0d553fa299d3be637d0c5e6974 Mon Sep 17 00:00:00 2001 From: p57492168 <2577192526@qq.com> Date: Mon, 20 Jun 2022 22:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainWindow_map.py | 6 +++++- MainWindow_map.ui | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/MainWindow_map.py b/MainWindow_map.py index 4b3f01f..31f6122 100644 --- a/MainWindow_map.py +++ b/MainWindow_map.py @@ -95,6 +95,9 @@ class Ui_MainWindow(object): self.horizontalLayout.addLayout(self.formLayout_2) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") + self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) + self.pushButton_2.setObjectName("pushButton_2") + self.verticalLayout_2.addWidget(self.pushButton_2) self.pushButton_run = QtWidgets.QPushButton(self.centralwidget) font = QtGui.QFont() font.setFamily("宋体") @@ -132,7 +135,7 @@ class Ui_MainWindow(object): self.verticalLayout.setStretch(1, 10) self.horizontalLayout_3.addLayout(self.verticalLayout) MainWindow.setCentralWidget(self.centralwidget) - #信号与槽相关联 + self.retranslateUi(MainWindow) self.pushButton_run.clicked.connect(MainWindow.run) self.pushButton_stop.clicked.connect(MainWindow.stop) @@ -155,6 +158,7 @@ class Ui_MainWindow(object): self.label_9.setText(_translate("MainWindow", "移动节点电池容量")) self.lineEdit_bettery.setText(_translate("MainWindow", "100")) self.label_4.setText(_translate("MainWindow", "算法选择")) + self.pushButton_2.setText(_translate("MainWindow", "关于我们")) self.pushButton_run.setText(_translate("MainWindow", "运行")) self.pushButton_stop.setText(_translate("MainWindow", "停止")) self.pushButton.setText(_translate("MainWindow", "退出程序")) diff --git a/MainWindow_map.ui b/MainWindow_map.ui index 8bd8428..8ecec49 100644 --- a/MainWindow_map.ui +++ b/MainWindow_map.ui @@ -157,6 +157,13 @@ + + + + 关于我们 + + +