set daemon()is deprecated,set the daemon attribute instead

img

Python3.10中,set.Daemon(aTrue)这种写法已经弃用了,正确的写法是.daemon=True
举例:
t=threading.Thread(target=h)
t.daemon=True
t.start()

看提示
self.thread.setDaemon = True
或者
self.thread.Daemon = True
这样试试

self.thread.daemon = True