Skip to content

Commit a39554b

Browse files
committed
Minor codestyle changes
1 parent 054222a commit a39554b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

qtapputils/widgets/about.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ def __init__(self, icon: QIcon, title: str,
3838
self.setWindowIcon(icon)
3939
self.setWindowTitle(title)
4040

41+
pixmap = QPixmap(banner_fpath)
42+
self.label_pic = QLabel(self)
43+
self.label_pic.setPixmap(
44+
pixmap.scaledToWidth(450, Qt.SmoothTransformation))
45+
self.label_pic.setAlignment(Qt.AlignTop)
46+
4147
# Get current font properties
4248
font = self.font()
4349
font_family = font.family()
@@ -72,12 +78,6 @@ def __init__(self, icon: QIcon, title: str,
7278
self.label.setOpenExternalLinks(True)
7379
self.label.setTextInteractionFlags(Qt.TextBrowserInteraction)
7480

75-
pixmap = QPixmap(banner_fpath)
76-
self.label_pic = QLabel(self)
77-
self.label_pic.setPixmap(
78-
pixmap.scaledToWidth(450, Qt.SmoothTransformation))
79-
self.label_pic.setAlignment(Qt.AlignTop)
80-
8181
content_frame = QFrame(self)
8282
content_frame.setStyleSheet(
8383
"QFrame {background-color: white}")

0 commit comments

Comments
 (0)