diff --git a/docs/examples/widgets/checkbox.py b/docs/examples/widgets/checkbox.py index 23c4ee70c..5ad6ca1ff 100644 --- a/docs/examples/widgets/checkbox.py +++ b/docs/examples/widgets/checkbox.py @@ -7,16 +7,15 @@ class CheckboxApp(App[None]): CSS_PATH = "checkbox.css" def compose(self) -> ComposeResult: - yield Vertical( - Checkbox("Arrakis :sweat:"), - Checkbox("Caladan"), - Checkbox("Chusuk"), - Checkbox("[b]Giedi Prime[/b]"), - Checkbox("[magenta]Ginaz[/]"), - Checkbox("Grumman", True), - Checkbox("Kaitain", id="initial_focus"), - Checkbox("Novebruns", True), - ) + with Vertical(): + yield Checkbox("Arrakis :sweat:") + yield Checkbox("Caladan") + yield Checkbox("Chusuk") + yield Checkbox("[b]Giedi Prime[/b]") + yield Checkbox("[magenta]Ginaz[/]") + yield Checkbox("Grumman", True) + yield Checkbox("Kaitain", id="initial_focus") + yield Checkbox("Novebruns", True) def on_mount(self): self.query_one("#initial_focus", Checkbox).focus()