This commit is contained in:
Auric Vente
2024-07-25 10:59:52 -06:00
parent 2ddf25b069
commit e2f5d1c8f6
4 changed files with 37 additions and 6 deletions

View File

@@ -569,3 +569,18 @@ class Game:
@staticmethod
def change_speed(speed: str) -> None:
Window.speed.setCurrentText(speed.capitalize())
@staticmethod
def filter_top() -> None:
from .filter import Filter
value = Filter.get_value()
ant = Ants.top
if not ant:
return
if value == ant.name.lower():
Filter.clear()
else:
Filter.set_value(ant.name)