pdwidgets.widgets.form
Form binder: named fields, validate / values / commit (no chrome of its own).
- class pdwidgets.widgets.form.Form(on_commit=None, error_label=None)[source]
Bases:
objectRegister named field widgets and collect/validate their values.
Depends on existing controls (
FormRow,TextInput,Switch, …). Optionalerror_labelreceives the first error string whenvalidatefails.- add(name, widget, validator=None)[source]
Bind
widgetundername; optionalvalidator(value) -> err|None.