def initNoVideo(self) -> None:
self.novideoWidget = QWidget(self)
self.novideoWidget.setObjectName('novideoWidget')
self.novideoWidget.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.MinimumExpanding)
self.novideoLabel = QLabel(self)
self.novideoLabel.setAlignment(Qt.AlignCenter)
self.novideoMovie = QMovie(':/images/novideotext.gif', b'GIF', self)
self.novideoMovie.setScaledSize(QSize(250, 30))
self.novideoMovie.frameChanged.connect(lambda: self.novideoLabel.setPixmap(self.novideoMovie.currentPixmap()))
self.novideoMovie.start()
novideoLayout = QVBoxLayout()
novideoLayout.addStretch(3)
novideoLayout.addWidget(self.novideoLabel)
novideoLayout.addStretch(1)
self.novideoWidget.setLayout(novideoLayout)
评论列表
文章目录