forked from SeAIPalette/SeAIPalette
Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
ef0db7de04 | |
![]() |
4495094e94 | |
![]() |
b817c5c3bc | |
![]() |
23630001f6 | |
![]() |
053f0b48f1 |
|
@ -2,3 +2,4 @@
|
||||||
__pycache__
|
__pycache__
|
||||||
TODO.md
|
TODO.md
|
||||||
script.py
|
script.py
|
||||||
|
.idea
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
# Form implementation generated from reading ui file 'MainWindow_map.ui'
|
# Form implementation generated from reading ui file 'MainWindow_map.ui'
|
||||||
#
|
#
|
||||||
# Created by: PyQt5 UI code generator 5.15.1
|
# Created by: PyQt5 UI code generator 5.15.4
|
||||||
#
|
|
||||||
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
# 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.
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
@ -96,6 +95,13 @@ class Ui_MainWindow(object):
|
||||||
self.horizontalLayout.addLayout(self.formLayout_2)
|
self.horizontalLayout.addLayout(self.formLayout_2)
|
||||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("宋体")
|
||||||
|
font.setPointSize(12)
|
||||||
|
self.pushButton.setFont(font)
|
||||||
|
self.pushButton.setObjectName("pushButton")
|
||||||
|
self.verticalLayout_2.addWidget(self.pushButton)
|
||||||
self.pushButton_run = QtWidgets.QPushButton(self.centralwidget)
|
self.pushButton_run = QtWidgets.QPushButton(self.centralwidget)
|
||||||
font = QtGui.QFont()
|
font = QtGui.QFont()
|
||||||
font.setFamily("宋体")
|
font.setFamily("宋体")
|
||||||
|
@ -149,6 +155,7 @@ class Ui_MainWindow(object):
|
||||||
self.label_9.setText(_translate("MainWindow", "移动节点电池容量"))
|
self.label_9.setText(_translate("MainWindow", "移动节点电池容量"))
|
||||||
self.lineEdit_bettery.setText(_translate("MainWindow", "100"))
|
self.lineEdit_bettery.setText(_translate("MainWindow", "100"))
|
||||||
self.label_4.setText(_translate("MainWindow", "算法选择"))
|
self.label_4.setText(_translate("MainWindow", "算法选择"))
|
||||||
|
self.pushButton.setText(_translate("MainWindow", "设置"))
|
||||||
self.pushButton_run.setText(_translate("MainWindow", "运行"))
|
self.pushButton_run.setText(_translate("MainWindow", "运行"))
|
||||||
self.pushButton_stop.setText(_translate("MainWindow", "停止"))
|
self.pushButton_stop.setText(_translate("MainWindow", "停止"))
|
||||||
self.label_show.setText(_translate("MainWindow", "<html><head/><body><p><br/></p></body></html>"))
|
self.label_show.setText(_translate("MainWindow", "<html><head/><body><p><br/></p></body></html>"))
|
||||||
|
|
|
@ -157,6 +157,19 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>宋体</family>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>设置</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_run">
|
<widget class="QPushButton" name="pushButton_run">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
|
|
|
@ -5,7 +5,7 @@ from PyQt5.QtWidgets import *
|
||||||
from PyQt5.QtCore import *
|
from PyQt5.QtCore import *
|
||||||
from PyQt5.QtGui import QPixmap
|
from PyQt5.QtGui import QPixmap
|
||||||
|
|
||||||
import threading, time, subprocess
|
import threading, subprocess
|
||||||
|
|
||||||
class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -122,6 +122,5 @@ class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
window = mywindow()
|
window = mywindow()
|
||||||
# window.showMaximized()
|
|
||||||
window.show()
|
window.show()
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec_())
|
||||||
|
|
Loading…
Reference in New Issue