This commit is contained in:
Auric Vente 2024-07-22 00:16:08 -06:00
parent bc33a4c41b
commit 1af2cd9ad4
1 changed files with 2 additions and 6 deletions

View File

@ -42,9 +42,7 @@ class Game:
Game.info() Game.info()
@staticmethod @staticmethod
def update( def update(ant: Ant) -> None:
ant: Ant,
) -> None:
container = QHBoxLayout() container = QHBoxLayout()
image_label = Game.get_image(ant) image_label = Game.get_image(ant)
right_container = Game.make_right_container(ant) right_container = Game.make_right_container(ant)
@ -111,9 +109,7 @@ class Game:
return root return root
@staticmethod @staticmethod
def get_image( def get_image(ant: Ant) -> QLabel:
ant: Ant,
) -> QLabel:
if ant.method == "hatched": if ant.method == "hatched":
path = Config.hatched_image_path path = Config.hatched_image_path
elif ant.method == "terminated": elif ant.method == "terminated":