mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 04:04:15 +02:00
label showing the number of displayed apps / total apps
This commit is contained in:
7
bauh/view/qt/view_utils.py
Normal file
7
bauh/view/qt/view_utils.py
Normal 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))
|
||||
Reference in New Issue
Block a user