Back to Textual

textual.await_remove

docs/api/await_remove.md

8.2.5490 B
Original Source

This module contains the AwaitRemove class. An AwaitRemove object is returned by [Widget.remove()][textual.widget.Widget.remove] and other methods which remove widgets. You can await the return value if you need to know exactly when the widget(s) have been removed. Or you can ignore it and Textual will wait for the widgets to be removed before handling the next message.

!!! note

You are unlikely to need to explicitly create these objects yourself.

::: textual.await_remove