autogen

Automatically generates GUI components for attrs classes.

Functions

generate_device_configuration_editor(config_type)

Generate a device configuration editor for the given configuration type.

build_device_configuration_editor(config_type)

build_attrs_class_editor(cls, builder, ...)

Build an editor for attrs class.

build_literal_editor(*values)

Build an editor for a predefined set of values.

generate_enum_editor(enum_type)

Generate an editor factory for an enum type.

get_editor_builder()

Return a new editor builder with basic types registered.

Classes

EditorBuilder()

Construct widgets to edit values of given types.

IntegerEditor([min_value, max_value, ...])

An editor to display an integer.

StringEditor([placeholder])

An editor to display a string.

ValueEditor()

Allows to edit a value of type T.

AttributeOverride([label, editor_factory, ...])

Overrides for the automatic generation of an attribute editor.

Exceptions

TypeNotRegisteredError