Skip to content

Commit 3585dbd

Browse files
committed
docs
1 parent df77f68 commit 3585dbd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/guide/widgets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Text in a widget may be marked up with links which perform an action when clicke
125125
Links in markup use the following format:
126126

127127
```
128-
"Click [@click='app.bell']Me[/]"
128+
"Click [@click=app.bell]Me[/]"
129129
```
130130

131131
The `@click` tag introduces a click handler, which runs the `app.bell` action.

src/textual/widget.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4036,10 +4036,11 @@ async def batch(self) -> AsyncGenerator[None, None]:
40364036
yield
40374037

40384038
def render(self) -> RenderResult:
4039-
"""Get [content](./guide/content) for the widget.
4039+
"""Get [content](/guide/content) for the widget.
40404040
4041-
Implement this for custom widgets.
4042-
This method should return a string, a [Content][textual.content.Content] object, or a [Rich](https://github.com/Textualize/rich) renderable.
4041+
Implement this method in a subclass for custom widgets.
4042+
4043+
This method should return [markup](/guide/content#markup), a [Content][textual.content.Content] object, or a [Rich](https://github.com/Textualize/rich) renderable.
40434044
40444045
Example:
40454046
```python

0 commit comments

Comments
 (0)