Resolve monitor.py conflicts (4 hunks): temp history keeps the
honest-empty 'no data' state with the new scaled fonts + dynamic Y
margin; tachometer takes the new radial-inset numerals + the missing
cr.restore() after the tick loop (4 saves / 4 restores); process list
keeps fractional columns + ASCII sort markers + selection highlight
at the audit's 13px / 23px sizing.
- Graphs (History/Net/Temp): dynamic left margin from the widest Y
label (fixes Y labels overflowing the plot), legend on top, 5 Y
labels, humanised units in NetGraph, TempHistory threshold label
above the line ("80 C limit"), top/bottom Y labels hang clear of
the title and the strip below the plot. History gains -60s/now.
- XTachometer: numerals 7.5% of dial diameter bold just inside the
tick ring, RPM bold centred in-dial below the top numerals (its
baseline hangs below the top numeral so it cannot collide with
the 3200/4800 numerals on small dials), readout "value (peak N)"
enlarged below the hub, redline numerals in red.
- All 14 audit widgets: font sizes derived from widget dimensions
per the proportions audit (titles 16px bold, hero values 24-48px
bold, body/legend 13-16px, min 11px); CoreGrid keeps 4x2; UsageBar
labels outside the bar on a dark panel; StackBar title+total
header (adaptive: omitted at 48px where it would push the legend
out) with centred block; VerticalBar value inside the bar, peak
label with shrink-to-fit; ArcGauge centre 40-48px + endpoints;
DonutGauge centre 36-44px, ring 8-10% of diameter, duplicate
title dropped, centre label is the value name; ProcessList 13px
rows, bold header with sort indicator, "N procs"; LoadBadge
centred two-line block with scaled values; MonitorButton scaled
label/dot/status + detail line; MonitorGrid ceil(sqrt(n)) columns,
name+status+detail design with wrapped detail; SysBox hero
28-32px + max + bar %.
- New _fpx() clamp helper; XStackBar gains the "unit" prop
(props_monitor.py) for its "total <sum> <unit>" header.
- Demos: button/grid labels "SSH :22" -> "sshd :22", tach label
"Engine" -> "RPM", stackbar demo 320x48 -> 320x120 (title+bar+
legend cannot fit in 48px), verticalbar demo 60 -> 160 wide
(the "peak 82" label cannot fit in a 60px widget).
- Deviations from the audit spec: UsageBar label capped at 40px
(the literal 0.45x rule gives 209px in a 464px-tall bar); SysBox
hero uses 10% of height clamped 20-32px (spec 6-7% conflicts
with the audited-correct PY value of 10.3%); PY LoadBadge gets
no 1/5/15 sub-labels (the audit calls the PY layout correct;
the sub-labels were directed at Rust).
Full suite: 363 tests OK (44 skipped). All 15 demos shot + verified.
Resolve monitor.py conflict: keep the process-manager selected-row
highlight AND the task-manager width-relative column positions
(xs[0] for the PID column instead of fixed x=6).
Python port of the Task Manager clone: TPageControl with two tabs
(tab clicks need app-level hit handling, fixed tab-width 140).
Processes tab is a live XProcessList from /proc (sortable PID /
Program / User / Mem / CPU% columns, header clicks toggle the
direction). Performance tab is XHistoryGraph (60 s CPU + memory),
XCoreGrid (per-core), XUsageBar (Memory, Disk /, Swap), XStackBar
(memory breakdown) and XNetGraph (live /proc/net/dev rates). Data
sampled every 500 ms (GLib timeout); window repaints every 2 s
(a full redraw is ~38 rows x 5 text calls plus the graphs, and
repainting every tick burned ~40% of a core); the process list
refreshes every 2 s. Python monitor widgets draw dark btop-style
panels, so the window background is dark.
Also fixes two XProcessList issues the app exposed: the columns
were fixed offsets drawn for the 360px demo widget (a wide widget
was mostly empty) -> width-relative fractions, same as the C++
widget, plus a v/^ sort marker in the header; and _read_processes
opened /proc/<pid>/status for every process on every scan (671 ms
CPU for 400 processes) -> RSS now comes from stat field 24 and
the uid lookup is cached per (pid, starttime), so a warm scan is
~75 ms (9x faster).
Single-widget monitor app (XTempHistory, 80 C threshold) reading
/sys/class/thermal + /sys/class/hwmon every 2 s. hot_dallas has no
thermal sensors, so the app shows the widget empty state (no data,
no fake readings) with a title that says so. Adds additive
MonitorWidget.clear() and an empty-state readout.
1024x768 window, 1 s refresh from /proc/mounts + os.statvfs and
/proc/diskstats. XUsageBar + XStackBar + XHistoryGraph; seeded demo
data replaced on first tick (push/set_segments start fresh own
data). Harness background is the widgets near-black panel color
(XStackBar paints no panel of its own). XSysBox deliberately unused
(no clear-history API, constructor seeds 60 demo samples).
Screenshot verified 1024x768 on :116. Tests: 363 OK.
XCoreGrid + XTachometer + XHistoryGraph + XLoadBadge + XUsageBar in one
1024x768 window, live /proc/stat + /proc/loadavg sampled every 500 ms
via refresh_cores()/refresh_load(). Pushing live samples starts fresh
series, so the seeded demo data is replaced on the first live sample.
One 1024x768 window: XMonitorGrid of XMonitorButton cells for the
real services on hot_dallas -- ports 22/80/443/81/2368/5000/5009/7888,
processes dockerd/containerd, units docker.service/ssh.service.
Live poll_all() on a 2 s GLib timer; green up / red down.
Screenshot verified: 12/12 up. Tests: 363 passed.
The right-aligned total overlapped the last legend item and its
byte formatting was meaningless for unitless segments. Legend now
shows only the segment chips + percentages.
Designer-pattern examples + Xvfb :107 screenshots. The last four
feed live data (real /proc processes, load averages, sshd :22 /
unit checks); XProcessList re-shot after the wall-time CPU% fix
(busy loop now reads ~97%, not ~240%).
Designer-pattern examples + Xvfb :107 screenshots (see Batch B
for the harness/shooter). Gauges re-shot after the _arc_stroke
fix; tachometer readout moved clear of the 0/max labels.
One minimal complete program per widget, from the designer codegen
(one window, one widget, OnClick wired). Every example was run under
Xvfb and screenshotted (547/547 ok); screenshots appear on the widget
pages at pythondoc.lightgui.com.
Minimal complete programs from the designer codegen (one window, one
widget, OnClick wired), plus examples/README.md. Screenshots taken
under Xvfb prove each runs. Full 547-widget set follows.