README: widget count 547 -> 562, Monitor (15) family section
363 tests; 598-entry palette (562 widgets + 36 legacy); new X* monitor-family bullet + layout entries; examples README counts (209 XFrame) + monitor live-timer note.
This commit is contained in:
1 parent
b361a35909
commit
03065d35bf
2 files changed
+20
-6
No files matched your search
@@ -6,7 +6,7 @@ and https://github.com/cnmcdee/lightgui_rust (Rust port).
|
|||||||
## Status
|
## Status
|
||||||
|
|
||||||
**All 7 phases complete** (Nov 30 – Dec 1, 2026). The designer runs under Xvfb and on a
|
**All 7 phases complete** (Nov 30 – Dec 1, 2026). The designer runs under Xvfb and on a
|
||||||
real display, with 278 tests passing (`DISPLAY=:99 python3 -m unittest discover -s tests`).
|
real display, with 363 tests passing (`DISPLAY=:99 python3 -m unittest discover -s tests`).
|
||||||
See `docs/architecture.md` for the phase plan actually used and the final module layout.
|
See `docs/architecture.md` for the phase plan actually used and the final module layout.
|
||||||
|
|
||||||

|

|
||||||
@@ -20,7 +20,7 @@ See `docs/architecture.md` for the phase plan actually used and the final module
|
|||||||
designers: GTK is chrome only, the canvas is XFrame-native.
|
designers: GTK is chrome only, the canvas is XFrame-native.
|
||||||
- **Generated code is Python** using the Python XFrame widgets (the mirror of the C++ codegen).
|
- **Generated code is Python** using the Python XFrame widgets (the mirror of the C++ codegen).
|
||||||
- **Widget model follows the Rust port's archetype approach**: a small set of archetype
|
- **Widget model follows the Rust port's archetype approach**: a small set of archetype
|
||||||
classes parameterised by a `kind` string, with data-driven property tables — not 547
|
classes parameterised by a `kind` string, with data-driven property tables — not 562
|
||||||
separate widget classes. The C designer is the canonical reference for behaviour;
|
separate widget classes. The C designer is the canonical reference for behaviour;
|
||||||
the Rust port is the reference for structure.
|
the Rust port is the reference for structure.
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ View → Code Window.
|
|||||||
|
|
||||||
## What works
|
## What works
|
||||||
|
|
||||||
- **Designer canvas** — 583-entry palette covering all 547 widget kinds; place by
|
- **Designer canvas** — 598-entry palette covering all 562 widget kinds; place by
|
||||||
clicking, select, drag to move, resize handles (13px, double-click to show),
|
clicking, select, drag to move, resize handles (13px, double-click to show),
|
||||||
Delete/Escape, status bar with selection geometry.
|
Delete/Escape, status bar with selection geometry.
|
||||||
- **Object Inspector** — geometry spins, generic + per-widget custom properties,
|
- **Object Inspector** — geometry spins, generic + per-widget custom properties,
|
||||||
@@ -82,6 +82,14 @@ View → Code Window.
|
|||||||
so generated scripts run without `PYTHONPATH`.
|
so generated scripts run without `PYTHONPATH`.
|
||||||
- **Stock (37) + Instrumentation (66) widgets** — drawn with Cairo and covered
|
- **Stock (37) + Instrumentation (66) widgets** — drawn with Cairo and covered
|
||||||
by data-driven property tables, including 14/16-segment displays.
|
by data-driven property tables, including 14/16-segment displays.
|
||||||
|
- **Monitor (15) widgets** — btop-style live system monitors (XHistoryGraph,
|
||||||
|
XCoreGrid, XNetGraph, XTempHistory, XUsageBar, XStackBar, XVerticalBar,
|
||||||
|
XTachometer, XArcGauge, XDonutGauge, XProcessList, XLoadBadge,
|
||||||
|
XMonitorButton, XMonitorGrid, XSysBox), drawn with Cairo on dark panels.
|
||||||
|
Sample data is runtime state only (deterministic demo data until push() /
|
||||||
|
refresh() / poll() feeds real data); checks are stdlib only (/proc scan,
|
||||||
|
`systemctl is-active`, localhost sockets). Examples in `examples/x*.py`
|
||||||
|
run a GLib timer feeding live data; screenshots in `examples/shots/`.
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
@@ -95,14 +103,16 @@ lightgui/
|
|||||||
project_io.py .fdj load/save
|
project_io.py .fdj load/save
|
||||||
props.py property tables (generic set + per-widget), data-driven
|
props.py property tables (generic set + per-widget), data-driven
|
||||||
props_phase6.py Stock + Instrumentation property tables
|
props_phase6.py Stock + Instrumentation property tables
|
||||||
|
props_monitor.py Monitor (15) property tables
|
||||||
xframe/
|
xframe/
|
||||||
core.py XFrame core: widget base, registry, draw dispatch,
|
core.py XFrame core: widget base, registry, draw dispatch,
|
||||||
archetype draw implementations
|
archetype draw implementations
|
||||||
canvas.py canvas (Gtk.DrawingArea), placement, selection, handles,
|
canvas.py canvas (Gtk.DrawingArea), placement, selection, handles,
|
||||||
drag, double-click, bounds-change hook
|
drag, double-click, bounds-change hook
|
||||||
palette.py palette data (583 entries)
|
palette.py palette data (598 entries)
|
||||||
stock.py Stock widgets (37)
|
stock.py Stock widgets (37)
|
||||||
instruments.py Instrumentation widgets (66)
|
instruments.py Instrumentation widgets (66)
|
||||||
|
monitor.py Monitor widgets (15)
|
||||||
inspector.py Object Inspector window
|
inspector.py Object Inspector window
|
||||||
codeview.py code view with gutter/folding
|
codeview.py code view with gutter/folding
|
||||||
generator.py Python codegen
|
generator.py Python codegen
|
||||||
|
|||||||
+6
-2
@@ -1,7 +1,7 @@
|
|||||||
# LightGUI Python widget examples
|
# LightGUI Python widget examples
|
||||||
|
|
||||||
One minimal complete program per widget in the LightGUI Python set
|
One minimal complete program per widget in the LightGUI Python set
|
||||||
(547 widgets: 194 XFrame + 287 Stock + 66 Instrumentation).
|
(562 widgets: 209 XFrame + 287 Stock + 66 Instrumentation).
|
||||||
|
|
||||||
Each file is the LightGUI designer's own Python codegen output for a
|
Each file is the LightGUI designer's own Python codegen output for a
|
||||||
project holding just that widget: one window, the widget placed at its
|
project holding just that widget: one window, the widget placed at its
|
||||||
@@ -9,7 +9,11 @@ default size, `OnClick` wired to a handler that prints
|
|||||||
`EVENT <name> OnClick`. Some widgets get a seeded demo prop so the
|
`EVENT <name> OnClick`. Some widgets get a seeded demo prop so the
|
||||||
screenshot shows something (a gauge gets `value` 65, a combo box gets
|
screenshot shows something (a gauge gets `value` 65, a combo box gets
|
||||||
three items, a stock chart gets symbol `AAPL`); charts and indicators
|
three items, a stock chart gets symbol `AAPL`); charts and indicators
|
||||||
render the built-in deterministic demo price series.
|
render the built-in deterministic demo price series. The 15 X*
|
||||||
|
monitor examples also run a GLib timer that feeds live data (sine waves,
|
||||||
|
or real /proc + systemctl + socket checks for the process / load /
|
||||||
|
monitor widgets) and redraws; their screenshots live in
|
||||||
|
`examples/shots/` (taken with `tools/shoot_monitor.py`).
|
||||||
|
|
||||||
## Run one
|
## Run one
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user