mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add the Print event to the list of events in the reference
This commit is contained in:
14
docs/events/print.md
Normal file
14
docs/events/print.md
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user