How to use these docs
Every widget in the LightGUI Python set has its own page on this blog: what it does, its full property table, how its events work, and a minimal complete Python program that builds and runs — with a screenshot proving it ran.
Running an example
Each widget page links to a runnable copy in the lightgui_python repo under examples/. Run one from a checkout with the package on PYTHONPATH:
PYTHONPATH=/opt/lightgui_python python3 examples/gtkbutton.pyIt needs a display; under Xvfb: DISPLAY=:99 python3 examples/gtkbutton.py. The program opens one window holding the widget, with OnClick wired to a handler that prints EVENT … OnClick.
How the examples are made
Each example is the LightGUI designer's own Python codegen output for a project holding just that widget — the same code the designer writes when you place the widget and press Generate. Properties are applied with widget.set_prop(name, value); properties marked model-only in the table have no live setter and are emitted as comments.
Events
The generated app dispatches OnClick, OnDblClick, OnMouseDown and OnMouseUp at run time: a press is hit-tested to the topmost widget under the pointer, and the release goes to the widget that got the press. Other Lazarus events (OnChange, OnKeyPress, …) get a handler stub in the generated code, kept for hand-wiring. Each widget page lists the events that widget uses.
Finding a widget
Start at the widget index, or one of the category indexes: XFrame (194), Stock (287), Instrumentation (66).