pyqt_reactive.forms.widget_creation_registry
Functional widget creation registry for OpenHCS UI frameworks.
Provides extensible type-to-widget dispatch using simple dicts and functions, eliminating class-based abstractions while maintaining clean extensibility.
Functions
Return PyQt6 widget creator function. |
|
Return Textual widget creator function. |
|
|
Extract enum type from List[Enum]. |
|
Check if type is an Enum. |
|
Check if type is List[Enum]. |
|
Resolve Optional[T] to T. |
- pyqt_reactive.forms.widget_creation_registry.resolve_optional(param_type: Type) Type[source]
Resolve Optional[T] to T.
- pyqt_reactive.forms.widget_creation_registry.is_enum(param_type: Type) bool[source]
Check if type is an Enum.
- pyqt_reactive.forms.widget_creation_registry.is_list_of_enums(param_type: Type) bool[source]
Check if type is List[Enum].
- pyqt_reactive.forms.widget_creation_registry.get_enum_from_list(param_type: Type) Type[source]
Extract enum type from List[Enum].