def resizeEvent(self, event):
    self.wait_ani.resize(self.parent().parent().size())
    event.accept()
    QScrollArea.resizeEvent(self, event)
def resizeEvent(self, event):
    self.wait_ani.resize(self.parent().parent().size())
    event.accept()
    QScrollArea.resizeEvent(self, event)