You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
726 B

import Color_tracking
import Area_tracking
import sys
from PyQt6.QtWidgets import QApplication, QWidget, QPushButton
def quit_app():
sys.exit(app.quit())
def main1():
print("main1 function called")
def main2():
print("main2 function called")
app = QApplication(sys.argv)
widget = QWidget()
widget.resize(300, 200)
button1 = QPushButton('自选单颜色追踪', widget)
button1.move(50, 50)
button1.clicked.connect(Color_tracking.main)
button2 = QPushButton('自选区域颜色追踪', widget)
button2.move(50, 100)
button2.clicked.connect(Area_tracking.main)
quit_button = QPushButton('退出', widget)
quit_button.move(200, 50)
quit_button.clicked.connect(quit_app)
widget.show()
sys.exit(app.exec())