# CPU Dashboard — monitor (Python) A btop-style CPU dashboard in one 1024x768 window, built only from LightGUI XFrame monitor widgets: - **XCoreGrid** — per-core mini history graphs - **XTachometer** — big total-CPU % gauge (redline 80%) - **XHistoryGraph** — total CPU % over the last 60 s - **XLoadBadge** — load average 1/5/15 min + uptime - **XUsageBar** — total CPU % bar Live data comes from `/proc/stat` (per-core busy %, via `XCoreGrid.refresh_cores()`) and `/proc/loadavg` (via `XLoadBadge.refresh_load()`), sampled every 500 ms. Pushing live samples starts fresh series, so the deterministic demo data is replaced on the first live sample. ## Run ```sh PYTHONPATH=. python3 examples/monitor_cpu_dashboard/main.py ``` Esc, `q`, or closing the window quits. ## Source - App: `examples/monitor_cpu_dashboard/main.py` - Widgets: `lightgui/xframe/monitor.py` - Repo: https://github.com/cnmcdee/lightgui_python