From 6551982d91bace05b4810b380f05dad7b97fc625 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 26 Apr 2025 14:00:34 +0100 Subject: [PATCH] fix merlin demo --- examples/merlin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/merlin.py b/examples/merlin.py index 67d5aaf20..10e651ee4 100644 --- a/examples/merlin.py +++ b/examples/merlin.py @@ -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")