[qcookboob] cosmetics
This commit is contained in:
parent
be3e19a203
commit
4dfdcfbe97
2 changed files with 50 additions and 2 deletions
|
|
@ -78,4 +78,4 @@ class Recipe(QFrame):
|
|||
if not empty(self.recipe.picture_url):
|
||||
data = urllib.urlopen(self.recipe.picture_url).read()
|
||||
img = QImage.fromData(data)
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToWidth(250,Qt.SmoothTransformation))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue