pressing enter refresh the boat list

This commit is contained in:
Faraphel 2023-02-25 14:11:51 +01:00
parent 0db1f08f71
commit fd2ffa7856
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
import pyglet
from source.gui.scene import MainMenu, Result
from source.gui.scene import MainMenu
from source.gui.window import GameWindow

View file

@ -231,6 +231,7 @@ class RoomCreate(Scene):
update_boat_size_text()
self.input_boat_amount.add_listener("on_valid_text", lambda *_: change_boat_amount())
self.input_boat_amount.add_listener("on_enter", lambda *_: change_boat_amount())
self.label_boat_recap = self.add_widget(
widget.Text,