pyqt_reactive.protocols.form_config

Base configuration class for form generation.

Provides hooks for applications to customize form generation behavior.

Functions

get_form_config()

Get the current form generation configuration.

set_form_config(config)

Set the global form generation configuration.

Classes

FormGenConfig(enable_placeholder_styling, ...)

Base configuration for form generation behavior.

class pyqt_reactive.protocols.form_config.FormGenConfig(enable_placeholder_styling: bool = True, enable_help_buttons: bool = True, enable_inheritance_tracking: bool = True, custom_widget_factories: Type, ~typing.Any]=<factory>, jedi_project_paths: List[str] = <factory>, log_dir: str | None = None, log_prefixes: List[str] = <factory>, log_root_logger_name: str | None = None, performance_logger_name: str = 'pyqt_reactive.performance', performance_log_filename: str = 'performance.log', path_cache_file: str | None = None)[source]

Base configuration for form generation behavior.

Applications can subclass this to provide custom configuration.

enable_placeholder_styling

Whether to apply special styling to placeholder values

Type:

bool

enable_help_buttons

Whether to show help buttons for fields with docstrings

Type:

bool

enable_inheritance_tracking

Whether to show inheritance source indicators

Type:

bool

custom_widget_factories

Custom widget factories by type

Type:

Dict[Type, Any]

enable_placeholder_styling: bool = True
enable_help_buttons: bool = True
enable_inheritance_tracking: bool = True
custom_widget_factories: Dict[Type, Any]
jedi_project_paths: List[str]
log_dir: str | None = None
log_prefixes: List[str]
log_root_logger_name: str | None = None
performance_logger_name: str = 'pyqt_reactive.performance'
performance_log_filename: str = 'performance.log'
path_cache_file: str | None = None
__init__(enable_placeholder_styling: bool = True, enable_help_buttons: bool = True, enable_inheritance_tracking: bool = True, custom_widget_factories: Type, ~typing.Any]=<factory>, jedi_project_paths: List[str] = <factory>, log_dir: str | None = None, log_prefixes: List[str] = <factory>, log_root_logger_name: str | None = None, performance_logger_name: str = 'pyqt_reactive.performance', performance_log_filename: str = 'performance.log', path_cache_file: str | None = None) None
pyqt_reactive.protocols.form_config.set_form_config(config: FormGenConfig) None[source]

Set the global form generation configuration.

Parameters:

config – FormGenConfig instance

pyqt_reactive.protocols.form_config.get_form_config() FormGenConfig[source]

Get the current form generation configuration.

Returns:

Current FormGenConfig or default if not set