Mods
This commit is contained in:
parent
bc33a4c41b
commit
1af2cd9ad4
|
@ -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":
|
||||||
|
|
Loading…
Reference in New Issue