We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1e9765 commit 6551982Copy full SHA for 6551982
examples/merlin.py
@@ -163,7 +163,7 @@ def on_switch_changed(self, event: Switch.Changed) -> None:
163
self.query_one(f"#switch-{toggle_no}", Switch).toggle()
164
# Check the win
165
if self.check_win():
166
- self.query_one("Screen").add_class("-win")
+ self.screen.add_class("-win")
167
self.query_one(Timer).running = False
168
self.notify("You win!", title="congratulations", severity="information")
169
0 commit comments