euporie.core.widgets.logo
Defines a logo widget.
Classes
|
Control that displays formatted text. |
|
A widget to display the application's logo. |
|
Container that holds a control. |
|
Alignment of the Window content. |
- class euporie.core.widgets.logo.Logo(content: UIControl | None = None, height: AnyDimension = 1, width: AnyDimension = 3, style: str | Callable[[], str] = 'class:menu,logo', dont_extend_width: FilterOrBool = True, align: WindowAlign | Callable[[], WindowAlign] = WindowAlign.CENTER, **kwargs: Any)
Bases:
Window
A widget to display the application’s logo.
- get_key_bindings() KeyBindingsBase | None
Returns a
KeyBindings
object. These bindings become active when any user control in this container has the focus, except if any containers between this container and the focused user control is modal.
- is_modal() bool
When this container is modal, key bindings from parent containers are not taken into account if a user control in this container is focused.
- preferred_height(width: int, max_available_height: int) Dimension
Calculate the preferred height for this window.
- preferred_width(max_available_width: int) Dimension
Calculate the preferred width for this window.
- reset() None
Reset the state of this container and all the children. (E.g. reset scroll offsets, etc…)
- write_to_screen(screen: Screen, mouse_handlers: MouseHandlers, write_position: WritePosition, parent_style: str, erase_bg: bool, z_index: int | None) None
Write window to screen.