This commit is contained in:
Auric Vente 2024-07-19 19:46:02 -06:00
parent 554cd1af72
commit c185aaa500
3 changed files with 5 additions and 6 deletions

View File

@ -105,11 +105,10 @@ class Game:
@staticmethod
def get_image(
image_path: Path, color: tuple[int, int, int] | None = None,
tooltip: str = ""
path: Path, color: tuple[int, int, int] | None = None, tooltip: str = ""
) -> QLabel:
image_label = QLabel()
pixmap = QPixmap(str(image_path))
pixmap = QPixmap(str(path))
scaled_pixmap = pixmap.scaled(
Config.image_size,