Skip to content

apps / winecellar / frontend / qt_kiosk / ui_scale.py

Path: apps/winecellar/frontend/qt_kiosk/ui_scale.py
Lane: apps
Executable: no/unknown

Purpose

Component: ui_scale

Lane: apps

Path: apps/winecellar/frontend/qt_kiosk/ui_scale.py

Role: Qt Utility

Purpose: - Defines 7 function(s) used by neighboring modules.

Inputs: - Environment variables read via os.getenv/environment access.

Outputs: - No module-scope side effects beyond symbol definitions/import wiring.

Execution: - Interactive Qt kiosk runtime (touch-first UI) within the frontend shell.

Failure modes: - Import path or dependency resolution errors at runtime. - Type/shape mismatches passed into exported functions/classes. - Unexpected runtime state propagated from upstream callers.

Entry points

  • No __main__ guard detected

Key symbols

Classes

  • (none detected)

Functions

  • S(px)
  • _config_path()
  • _find_platform_root(start)
  • _parse_scale(raw)
  • get_ui_scale()
  • load_ui_scale()
  • set_ui_scale(value)

Configuration & environment

  • (no env vars detected by regex)

Dependencies (imports)

  • __future__
  • os
  • pathlib
  • typing

Operational notes (fill in)

  • Headless/interactive:
  • Systemd unit (if any):
  • Schedules/triggers:
  • Debug artifacts:
  • Failure modes: