log_field.py 529 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. """
  3. Scrollbares Log-Widget (Wrapper um RichLog).
  4. """
  5. from __future__ import annotations
  6. from textual.widgets import RichLog
  7. class LogField(RichLog):
  8. """
  9. Scrollbares Log-Feld fuer Installations-Output.
  10. Basiert auf Textual RichLog mit Auto-Scroll.
  11. """
  12. DEFAULT_CSS = """
  13. LogField {
  14. height: 1fr;
  15. border: solid $primary;
  16. padding: 0 1;
  17. }
  18. """
  19. def __init__(self, **kwargs) -> None:
  20. super().__init__(highlight=True, markup=True, **kwargs)