Skip to content

modal ¤

Modal screen.

Classes:

  • Modal

    A modal screen.

  • ModalMixin

    Mixin class to add a modal method.

Modal ¤

Modal(*args: Any, text: Any, **kwargs: Any)

Bases: ModalScreen

A modal screen.

Methods:

  • compose

    Screen composition.

  • on_key

    Dismiss on any unbound key.

compose ¤

compose() -> ComposeResult

Screen composition.

on_key ¤

on_key(event: Key) -> None

Dismiss on any unbound key.

ModalMixin ¤

Mixin class to add a modal method.

Methods:

  • modal

    Push a modal.

modal ¤

modal(text: str) -> None

Push a modal.