Mods
This commit is contained in:
parent
554cd1af72
commit
c185aaa500
|
@ -105,11 +105,10 @@ class Game:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_image(
|
def get_image(
|
||||||
image_path: Path, color: tuple[int, int, int] | None = None,
|
path: Path, color: tuple[int, int, int] | None = None, tooltip: str = ""
|
||||||
tooltip: str = ""
|
|
||||||
) -> QLabel:
|
) -> QLabel:
|
||||||
image_label = QLabel()
|
image_label = QLabel()
|
||||||
pixmap = QPixmap(str(image_path))
|
pixmap = QPixmap(str(path))
|
||||||
|
|
||||||
scaled_pixmap = pixmap.scaled(
|
scaled_pixmap = pixmap.scaled(
|
||||||
Config.image_size,
|
Config.image_size,
|
||||||
|
|
Loading…
Reference in New Issue