Skip to content

textual.await_remove

This module contains the AwaitRemove class. An AwaitRemove object is returned by 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.

An optionally awaitable object returned by methods that remove widgets.

AwaitRemove

AwaitRemove(tasks, post_remove=None)

An awaitable that waits for nodes to be removed.