This commit is contained in:
Auric Vente
2024-07-22 10:40:26 -06:00
parent bc928dc8d6
commit 9fcc9d31f8
2 changed files with 26 additions and 7 deletions

View File

@@ -223,9 +223,9 @@ class Window:
root = QWidget()
container = QHBoxLayout()
btn_restart = QPushButton("Restart")
btn_restart.setToolTip("Restart with a new set of ants")
btn_restart.clicked.connect(Game.restart)
btn_menu = QPushButton("Menu")
btn_menu.setToolTip("Restart with a new set of ants")
btn_menu.clicked.connect(Game.menu)
Window.speed = QComboBox()
tooltip = "The speed of the updates\n"
@@ -254,7 +254,7 @@ class Window:
Window.filter.mousePressEvent = lambda e: Window.to_top()
Window.filter.keyReleaseEvent = lambda e: Filter.filter(e)
container.addWidget(btn_restart, 1)
container.addWidget(btn_menu, 1)
container.addWidget(Window.speed, 1)
container.addWidget(Window.mode, 1)
container.addWidget(Window.filter, 1)