| 23 | |
| 24 | |
| 25 | class GifSplashScreen(QSplashScreen): |
| 26 | |
| 27 | def __init__(self, *args, **kwargs): |
| 28 | super(GifSplashScreen, self).__init__(*args, **kwargs) |
| 29 | self.movie = QMovie('Data/splash.gif') |
| 30 | self.movie.frameChanged.connect(self.onFrameChanged) |
| 31 | self.movie.start() |
| 32 | |
| 33 | def onFrameChanged(self, _): |
| 34 | self.setPixmap(self.movie.currentPixmap()) |
| 35 | |
| 36 | def finish(self, widget): |
| 37 | self.movie.stop() |
| 38 | super(GifSplashScreen, self).finish(widget) |
| 39 | |
| 40 | |
| 41 | class BusyWindow(QWidget): |