mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix merlin demo
This commit is contained in:
@@ -163,7 +163,7 @@ class MerlinApp(App):
|
||||
self.query_one(f"#switch-{toggle_no}", Switch).toggle()
|
||||
# Check the win
|
||||
if self.check_win():
|
||||
self.query_one("Screen").add_class("-win")
|
||||
self.screen.add_class("-win")
|
||||
self.query_one(Timer).running = False
|
||||
self.notify("You win!", title="congratulations", severity="information")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user