  class MainWindow(QMainWindow):     def __init__(self):         super().__init__()         self.ui=test.Ui_test()         self.ui.setupUi(self)         self.ui.pushButton_startThread.clicked.connect(self.startTestThread)      def startTestThread(self):         self.xValue = self.ui.lineEdit_x.text() #Represents number of batches         self.yValue = self.ui.lineEdit_y.text() #Represents number of images per batch         runTest = testThread(