self.button.clicked.connect(self.close())

在使用connect时,报TypeError: argument 1 has unexpected type 'NoneType'错误,解决办法:

self.button.clicked.connect(lambda:self.close())