| 123456789101112131415161718192021222324252627 |
- # -*- coding: utf-8 -*-
- """
- Scrollbares Log-Widget (Wrapper um RichLog).
- """
- from __future__ import annotations
- from textual.widgets import RichLog
- class LogField(RichLog):
- """
- Scrollbares Log-Feld fuer Installations-Output.
- Basiert auf Textual RichLog mit Auto-Scroll.
- """
- DEFAULT_CSS = """
- LogField {
- height: 1fr;
- border: solid $primary;
- padding: 0 1;
- }
- """
- def __init__(self, **kwargs) -> None:
- super().__init__(highlight=True, markup=True, **kwargs)
|