abacura.widgets package¶
Submodules¶
abacura.widgets.commslog module¶
A resizeable log window for communications
abacura.widgets.inspector module¶
abacura.widgets.resizehandle module¶
- class abacura.widgets.resizehandle.ResizeHandle(target: Widget, side: Literal['left', 'right', 'top', 'bottom'], *, name: str | None = None, id: str | None = None, classes: str | None = None, disabled: bool = False)[source]¶
Bases:
WidgetA handle for resizing a panel.
This is a child of the panel, and is positioned on the edge of the panel. The panel can use min-width, min-height, max-width, and max-height to limit the size.
- DEFAULT_CSS: ClassVar[str] = '\n ResizeHandle {\n width: auto;\n height: auto;\n background: $panel;\n color: rgba(128,128,128,0);\n }\n ResizeHandle:hover {\n background: $panel-lighten-1;\n color: rgba(128,128,128,0.3);\n }\n ResizeHandle.-active {\n background: $panel-darken-1;\n }\n '¶
- can_focus: bool = False¶
Widget may receive focus.
- can_focus_children: bool = True¶
Widget’s children may receive focus.
- get_content_height(container: Size, viewport: Size, width: int) int[source]¶
Called by Textual to get the height of the content area. May be overridden in a subclass.
- Args:
container: Size of the container (immediate parent) widget. viewport: Size of the viewport. width: Width of renderable.
- Returns:
The height of the content.