Skip to content

Commit 6551982

Browse files
committed
fix merlin demo
1 parent f1e9765 commit 6551982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/merlin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def on_switch_changed(self, event: Switch.Changed) -> None:
163163
self.query_one(f"#switch-{toggle_no}", Switch).toggle()
164164
# Check the win
165165
if self.check_win():
166-
self.query_one("Screen").add_class("-win")
166+
self.screen.add_class("-win")
167167
self.query_one(Timer).running = False
168168
self.notify("You win!", title="congratulations", severity="information")
169169

0 commit comments

Comments
 (0)