MCPcopy Create free account
hub / github.com/PyQt5/PyQt / GifSplashScreen

Class GifSplashScreen

QSplashScreen/GifSplashScreen.py:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25class 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
41class BusyWindow(QWidget):

Callers 1

GifSplashScreen.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected