mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Document AwaitRemove
This commit is contained in:
1
docs/api/await_remove.md
Normal file
1
docs/api/await_remove.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
::: textual.await_remove
|
||||||
@@ -142,6 +142,7 @@ nav:
|
|||||||
- "widgets/tree.md"
|
- "widgets/tree.md"
|
||||||
- API:
|
- API:
|
||||||
- "api/app.md"
|
- "api/app.md"
|
||||||
|
- "api/await_remove.md"
|
||||||
- "api/binding.md"
|
- "api/binding.md"
|
||||||
- "api/button.md"
|
- "api/button.md"
|
||||||
- "api/checkbox.md"
|
- "api/checkbox.md"
|
||||||
|
|||||||
@@ -5,7 +5,11 @@ from typing import Generator
|
|||||||
|
|
||||||
|
|
||||||
class AwaitRemove:
|
class AwaitRemove:
|
||||||
"""An awaitable returned by App.remove and DOMQuery.remove."""
|
"""An awaitable returned by a method that removes DOM nodes.
|
||||||
|
|
||||||
|
Returned by [Widget.remove][textual.widget.Widget.remove] and
|
||||||
|
[DOMQuery.remove][textual.css.query.DOMQuery.remove].
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self, finished_flag: Event, task: Task) -> None:
|
def __init__(self, finished_flag: Event, task: Task) -> None:
|
||||||
"""Initialise the instance of ``AwaitRemove``.
|
"""Initialise the instance of ``AwaitRemove``.
|
||||||
|
|||||||
Reference in New Issue
Block a user