mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
pep8
This commit is contained in:
parent
97934eb1b6
commit
eb162a4821
@ -142,7 +142,8 @@ class ColumnIcon: # {{{
|
||||
if (os.path.exists(d)):
|
||||
bm = QPixmap(d)
|
||||
scaled, nw, nh = fit_image(bm.width(), bm.height(), bm.width(), dim)
|
||||
bm = bm.scaled(int(nw), int(nh), aspectRatioMode=Qt.AspectRatioMode.IgnoreAspectRatio, transformMode=Qt.TransformationMode.SmoothTransformation)
|
||||
bm = bm.scaled(int(nw), int(nh), aspectRatioMode=Qt.AspectRatioMode.IgnoreAspectRatio,
|
||||
transformMode=Qt.TransformationMode.SmoothTransformation)
|
||||
bm.setDevicePixelRatio(self.dpr)
|
||||
icon_bitmaps.append(bm)
|
||||
total_width += bm.width()
|
||||
|
Loading…
x
Reference in New Issue
Block a user