text: # -*- coding: utf-8 -*-
  
  # Form implementation generated from reading ui file 'test2.ui'
  #
  # Created by: PyQt5 UI code generator 5.15.4
  #
  # 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.
  
  #创建了第一个窗口并可以打开
  import sys
  from PyQt5 import QtCore, QtGui, QtWidgets
  import test1
  import mutithreads_trial
  import threading
  
  
  class Ui_MainWindow(object):
      def Haha(self):
          gg = mutithreads_trial.mutithreads_trial()
          gg.time_calculate()
  
  
      def setupUi(self, MainWindow):
          MainWindow.setObjectName("MainWindow")
          MainWindow.resize(1280, 800)
  
          self.centralwidget = QtWidgets.QWidget(MainWindow)
          self.centralwidget.setObjectName("centralwidget")
  
          self.pushButton = QtWidgets.QPushButton(self.centralwidget)
          self.pushButton.setGeometry(QtCore.QRect(220, 130, 93, 28))
          self.pushButton.setObjectName("pushButton")
          self.pushButton.clicked.connect(self.Haha)
          self.toolButton = QtWidgets.QToolButton(self.centralwidget)
          self.toolButton.setGeometry(QtCore.QRect(290, 220, 47, 21))
          self.toolButton.setObjectName("toolButton")
  
          self.radioButton = QtWidgets.QRadioButton(self.centralwidget)
          self.radioButton.setGeometry(QtCore.QRect(280, 350, 115, 19))
          self.radioButton.setObjectName("radioButton")
  
          self.checkBox = QtWidgets.QCheckBox(self.centralwidget)
          self.checkBox.setGeometry(QtCore.QRect(300, 460, 91, 19))
          self.checkBox.setObjectName("checkBox")
          self.checkBox.
  
          self.tableView = QtWidgets.QTableView(self.centralwidget)
          self.tableView.setGeometry(QtCore.QRect(730, 190, 256, 192))
          self.tableView.setObjectName("tableView")
  
          MainWindow.setCentralWidget(self.centralwidget)
          self.menubar = QtWidgets.QMenuBar(MainWindow)
          self.menubar.setGeometry(QtCore.QRect(0, 0, 1280, 26))
          self.menubar.setObjectName("menubar")
          MainWindow.setMenuBar(self.menubar)
          self.statusbar = QtWidgets.QStatusBar(MainWindow)
          self.statusbar.setObjectName("statusbar")
          MainWindow.setStatusBar(self.statusbar)
  
          self.retranslateUi(MainWindow)
          QtCore.QMetaObject.connectSlotsByName(MainWindow)
  
      def retranslateUi(self, MainWindow):     #重新启动初始化
          _translate = QtCore.QCoreApplication.translate
          MainWindow.setWindowTitle(_translate("MainWindow", "垃圾分类"))
          self.pushButton.setText(_translate("MainWindow", "PushButton"))
          self.toolButton.setText(_translate("MainWindow", "..."))
          self.radioButton.setText(_translate("MainWindow", "RadioButton"))
          self.checkBox.setText(_translate("MainWindow", "CheckBox"))
  
  if __name__ == '__main__':
      app=QtWidgets.QApplication(sys.argv)
      MainWindow=QtWidgets.QMainWindow()
      ui=Ui_MainWindow()  #调用主函数
      ui.setupUi(MainWindow)  #初始化
      MainWindow.show() #显示
      sys.exit(app.exec_())   #点击关闭才退出