label showing the number of displayed apps / total apps

This commit is contained in:
Vinicius Moreira
2019-08-30 11:34:49 -03:00
parent dfdb054c11
commit 9bb6d01c33
2 changed files with 19 additions and 9 deletions

View File

@@ -0,0 +1,7 @@
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPixmap
def load_icon(path: str, size: int) -> QIcon:
pixmap = QPixmap(path)
return QIcon(pixmap.scaled(size, size, Qt.KeepAspectRatio, Qt.SmoothTransformation))