出错原因在于线程还在运行的时候线程对象就已经被摧毁了,很可能是被垃圾回收了。
You're not storing a reference to the thread after it's been created, which means that it will be garbage collected (ie. destroyed) some time after the program leaves MainWindows init. You need to store it at least as long as the thread is running, for example use self.statusTh: