update 更新界面显示_2

This commit is contained in:
FrankCV2048
2024-09-12 23:40:39 +08:00
parent 20feaecbbe
commit cf4f114609
3 changed files with 22 additions and 3 deletions

2
app.py
View File

@ -482,7 +482,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
pass
def send_setSpeed_lineEdit_returePressed(self):
Constant.speed = float(self.lineEdit_speed.text())
Constant.speed = int(self.lineEdit_speed.text())
self.lineEdit_speed.hide()
self.pushButton_speed.setText(str(Constant.speed))
self.pushButton_speed.show()