fix bcall to to new behavior of do(), and fix QtDo too, and all Qt applications...
This commit is contained in:
parent
7339258978
commit
b1f20b5489
16 changed files with 222 additions and 250 deletions
|
|
@ -47,10 +47,7 @@ class MiniVideo(QFrame):
|
|||
self.process_thumbnail = QtDo(self.weboob, self.gotThumbnail)
|
||||
self.process_thumbnail.do('fillobj', self.video, ['thumbnail'], backends=backend)
|
||||
|
||||
def gotThumbnail(self, backend, video):
|
||||
if not backend:
|
||||
return
|
||||
|
||||
def gotThumbnail(self, video):
|
||||
if video.thumbnail and video.thumbnail.data:
|
||||
img = QImage.fromData(video.thumbnail.data)
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue