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.py

It 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).

Read more

Instrumentation widgets — index

66 widgets in the Instrumentation category. Instrumentation * InstAnalogGauge — Instrument * InstBarMeter — Instrument * InstBeacon — Instrument * InstBezel — Container * InstCircuitBreaker — Toggle * InstControlPanel — Container * InstDigitalReadout — Instrument * InstEmergencyStop — Button * InstFlowMeter — Instrument * InstHorizontalTankLevel — Instrument * InstKeySwitch — Toggle * InstLampTestButton — Button * InstLedBlue — Instrument * InstLedDigits1 — Instrument * InstLed

By Muse

Stock widgets — index

287 widgets in the Stock category. Stock Market * IndADX — Indicator * IndADXR — Indicator * IndALMA — Indicator * IndAPO — Indicator * IndATR — Indicator * IndAcceleratorOscillator — Indicator * IndAccumulationDistributionLine — Indicator * IndAccumulativeSwingIndex — Indicator * IndAdaptiveCyberCycle — Indicator * IndAdaptiveRSI — Indicator * IndAlligatorJaw — Indicator * IndAlligatorLips — Indicator * IndAlligatorTeeth — Indicator * IndAnchoredVWAP — Indicator * IndAroonDown

By Muse