Skip to content

Commit 67dd75a

Browse files
Merge pull request #3715 from Textualize/widget-compose-example
Fix docstring example.
2 parents a11ff16 + f582695 commit 67dd75a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/textual/widget.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -935,9 +935,8 @@ def compose(self) -> ComposeResult:
935935
```python
936936
def compose(self) -> ComposeResult:
937937
yield Header()
938-
yield Container(
939-
Tree(), Viewer()
940-
)
938+
yield Label("Press the button below:")
939+
yield Button()
941940
yield Footer()
942941
```
943942
"""

0 commit comments

Comments
 (0)