[qcineoob] set pictures sizes
This commit is contained in:
parent
8d49950813
commit
1c42b12ab6
3 changed files with 3 additions and 3 deletions
|
|
@ -92,7 +92,7 @@ class Movie(QFrame):
|
|||
if not empty(self.movie.thumbnail_url):
|
||||
data = urllib.urlopen(self.movie.thumbnail_url).read()
|
||||
img = QImage.fromData(data)
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToWidth(220,Qt.SmoothTransformation))
|
||||
|
||||
def searchSubtitle(self):
|
||||
tosearch = unicode(self.movie.original_title)
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ class Person(QFrame):
|
|||
if not empty(self.person.thumbnail_url):
|
||||
data = urllib.urlopen(self.person.thumbnail_url).read()
|
||||
img = QImage.fromData(data)
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToWidth(220,Qt.SmoothTransformation))
|
||||
|
||||
def filmography(self):
|
||||
role = None
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class MiniRecipe(QFrame):
|
|||
if not empty(self.recipe.thumbnail_url):
|
||||
data = urllib.urlopen(self.recipe.thumbnail_url).read()
|
||||
img = QImage.fromData(data)
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToHeight(100))
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToHeight(100,Qt.SmoothTransformation))
|
||||
|
||||
def enterEvent(self, event):
|
||||
self.setFrameShadow(self.Sunken)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue