From c185aaa500f7128daf4eb4597ddc01515a737cb9 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Fri, 19 Jul 2024 19:46:02 -0600 Subject: [PATCH] Mods --- cromulant/config.py | 2 +- cromulant/game.py | 7 +++---- cromulant/utils.py | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cromulant/config.py b/cromulant/config.py index f81f09d..c056525 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -56,4 +56,4 @@ class Config: Config.font_path = Config.here / "fonts" / "NotoSans-Regular.ttf" Config.emoji_font_path = Config.here / "fonts" / "NotoEmoji-Regular.ttf" Config.song_path = Config.here / "audio" / "March of the Cyber Ants.mp3" - Config.logo_path = Config.here / "img" / "logo_3.jpg" \ No newline at end of file + Config.logo_path = Config.here / "img" / "logo_3.jpg" diff --git a/cromulant/game.py b/cromulant/game.py index c1d2c20..bc76fdd 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -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, @@ -226,4 +225,4 @@ class Game: path = str(Config.song_path) Window.play_audio(path) - Game.playing_song = not Game.playing_song \ No newline at end of file + Game.playing_song = not Game.playing_song diff --git a/cromulant/utils.py b/cromulant/utils.py index 09f7e4e..4571184 100644 --- a/cromulant/utils.py +++ b/cromulant/utils.py @@ -114,4 +114,4 @@ class Utils: def to_date(timestamp: float) -> str: dt_object = datetime.fromtimestamp(timestamp) hour = dt_object.strftime("%I").lstrip("0") - return dt_object.strftime(f"%b %d %Y - {hour}:%M %p") \ No newline at end of file + return dt_object.strftime(f"%b %d %Y - {hour}:%M %p")