forked from SeAIPalette/SeAIPalette
Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
p57492168 | 664637ae08 | |
p57492168 | 9ec9767e18 | |
p57492168 | 65d0ef32a4 | |
p57492168 | 75bbd439e9 | |
p57492168 | 68f3fe56a1 | |
p57492168 | a48cd146f8 | |
p57492168 | 85a7e606aa |
|
@ -2,3 +2,4 @@
|
|||
__pycache__
|
||||
TODO.md
|
||||
script.py
|
||||
.idea
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
# 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.12.3
|
||||
#
|
||||
# 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.
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
@ -110,6 +109,13 @@ class Ui_MainWindow(object):
|
|||
self.pushButton_stop.setFont(font)
|
||||
self.pushButton_stop.setObjectName("pushButton_stop")
|
||||
self.verticalLayout_2.addWidget(self.pushButton_stop)
|
||||
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.horizontalLayout.addLayout(self.verticalLayout_2)
|
||||
self.horizontalLayout.setStretch(0, 1)
|
||||
self.horizontalLayout.setStretch(1, 1)
|
||||
|
@ -131,6 +137,7 @@ class Ui_MainWindow(object):
|
|||
self.pushButton_run.clicked.connect(MainWindow.run)
|
||||
self.pushButton_stop.clicked.connect(MainWindow.stop)
|
||||
self.comboBox_bettery.currentTextChanged['QString'].connect(MainWindow.slot_bettery)
|
||||
self.pushButton.clicked.connect(MainWindow.quit)
|
||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||
|
||||
def retranslateUi(self, MainWindow):
|
||||
|
@ -151,4 +158,5 @@ class Ui_MainWindow(object):
|
|||
self.label_4.setText(_translate("MainWindow", "算法选择"))
|
||||
self.pushButton_run.setText(_translate("MainWindow", "运行"))
|
||||
self.pushButton_stop.setText(_translate("MainWindow", "停止"))
|
||||
self.pushButton.setText(_translate("MainWindow", "退出程序"))
|
||||
self.label_show.setText(_translate("MainWindow", "<html><head/><body><p><br/></p></body></html>"))
|
||||
|
|
|
@ -183,6 +183,19 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<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>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -230,8 +243,8 @@
|
|||
<slot>stop()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>1275</x>
|
||||
<y>160</y>
|
||||
<x>1284</x>
|
||||
<y>85</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>1273</x>
|
||||
|
@ -246,8 +259,8 @@
|
|||
<slot>slot_bettery()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>792</x>
|
||||
<y>120</y>
|
||||
<x>857</x>
|
||||
<y>109</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>899</x>
|
||||
|
@ -255,10 +268,27 @@
|
|||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>pushButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>quit()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>959</x>
|
||||
<y>117</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>940</x>
|
||||
<y>136</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
<slots>
|
||||
<slot>run()</slot>
|
||||
<slot>stop()</slot>
|
||||
<slot>slot_bettery()</slot>
|
||||
<slot>quit()</slot>
|
||||
</slots>
|
||||
</ui>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 82e80a5b3b1884cacc479d9918a1ff2b0ca61faa
|
|
@ -9,3 +9,4 @@ dependencies:
|
|||
- pyyaml==5.4.1
|
||||
- numpy==1.20.3
|
||||
- easydict==1.9
|
||||
- pyqt == 5.15.4
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
name: Palette
|
||||
dependencies:
|
||||
- python=3.7.6
|
||||
- anaconda
|
||||
- pip
|
||||
- pip:
|
||||
- pygame==2.0.1
|
||||
- pymunk==6.0.0
|
||||
- pyyaml==5.4.1
|
||||
- numpy==1.20.3
|
||||
- easydict==1.9
|
|
@ -117,11 +117,15 @@ class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||
def stop(self):
|
||||
print('2')
|
||||
|
||||
def quit(self):
|
||||
#sender = self.sender()
|
||||
#print(sender.text() + '按钮被按下')
|
||||
app = QApplication.instance()
|
||||
app.quit()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = QApplication(sys.argv)
|
||||
window = mywindow()
|
||||
# window.showMaximized()
|
||||
window.show()
|
||||
sys.exit(app.exec_())
|
||||
|
|
Loading…
Reference in New Issue