Skip to content

SettingField

🛈 DocStrings

One entry of the settings screen.

Source code in src/acptui/ui/screens/settings.py
@dataclass(frozen=True)
class SettingField:
    """One entry of the settings screen."""

    key: str
    """``name`` or ``notifications.name``."""
    title: str
    help: str
    restart: bool = False
    """Takes effect for new tabs (or after a restart) only."""

key instance-attribute

key: str

name or notifications.name.

restart class-attribute instance-attribute

restart: bool = False

Takes effect for new tabs (or after a restart) only.

:fa-brands-github: Show source on GitHub