fix input validation
This commit is contained in:
parent
725b30256d
commit
3a266e3bfc
2
bingo.py
2
bingo.py
@ -96,7 +96,7 @@ class BingoDisplay(Static):
|
||||
self.input_field.value = str(self.board.seed)
|
||||
|
||||
def on_input_submitted(self, event: Input.Submitted) -> None:
|
||||
if event.validation_result:
|
||||
if event.validation_result.is_valid:
|
||||
self.board.roll_board(int(event.value))
|
||||
|
||||
class BingoBoard(Widget):
|
||||
|
Loading…
Reference in New Issue
Block a user