generate_enum_editor

caqtus.gui.autogen.generate_enum_editor(
enum_type: type[T],
) Callable[[], EnumEditor]

Generate an editor factory for an enum type.

Returns:

A factory function that creates an EnumEditor for the given enum type. The editor is a combobox with the name of each enum member as its items.