mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Flesh out the Prune event docs
This commit is contained in:
@@ -128,7 +128,12 @@ class Unmount(Mount, bubble=False, verbose=False):
|
||||
|
||||
|
||||
class Prune(Event, bubble=False):
|
||||
"""Sent to the app to ask it to prune one or more widgets from the DOM."""
|
||||
"""Sent to the app to ask it to prune one or more widgets from the DOM.
|
||||
|
||||
Attributes:
|
||||
widgets (list[Widgets]): The list of widgets to prune.
|
||||
finished_flag (asyncio.Event): An asyncio Event to that will be flagged when the prune is done.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self, sender: MessageTarget, widgets: list[Widget], finished_flag: asyncio.Event
|
||||
|
||||
Reference in New Issue
Block a user