express.ui.hold

express.ui.hold()

Prevent the display of UI elements in various ways.

This is used as a context manager, as in with hold():. It prevents the display of all UI elements within the context block. (This is useful when you want to temporarily prevent the display of a large number of UI elements, or when you want to prevent the display of UI elements that are not directly under your control.)

It can also be used as with hold() as content: to capture the UI elements that would be displayed within the context block. Then, later, you can put content on a line by itself to display the captured UI elements.

Returns

Type Description
HoldContextManager A context manager that prevents the display of UI elements within the context block.

See Also