Add the Print event to the list of events in the reference

This commit is contained in:
Dave Pearson
2024-03-18 11:22:19 +00:00
parent eb396f065f
commit 1f03c0724a
2 changed files with 15 additions and 0 deletions

14
docs/events/print.md Normal file
View File

@@ -0,0 +1,14 @@
# Print
The `Print` event is sent to a widget that is capturing prints.
## Attributes
| Attribute | Type | Purpose |
|-----------|--------|-----------------------------------------------------|
| `text` | `str` | The text that was printed. |
| `stderr` | `bool` | `True` if printed to `stderr`, `False` if `stdout`. |
## Code
::: textual.events.Print

View File

@@ -62,6 +62,7 @@ nav:
- "events/mouse_scroll_up.md"
- "events/mouse_up.md"
- "events/paste.md"
- "events/print.md"
- "events/resize.md"
- "events/screen_resume.md"
- "events/screen_suspend.md"