pyqt_reactive.forms.layout_constants
Layout constants for PyQt parameter forms.
This module centralizes all spacing, margin, and layout configuration to ensure uniform appearance across all parameter forms.
Classes
|
Configuration for parameter form layout spacing and margins. |
- class pyqt_reactive.forms.layout_constants.ParameterFormLayoutConfig(main_layout_spacing: int = 4, main_layout_margins: tuple = (4, 4, 4, 4), content_layout_spacing: int = 1, content_layout_margins: tuple = (1, 1, 1, 1), parameter_row_spacing: int = 2, parameter_row_margins: tuple = (1, 1, 1, 1), optional_layout_spacing: int = 2, optional_layout_margins: tuple = (2, 2, 1, 1), groupbox_spacing: int = 2, groupbox_margins: tuple = (5, 5, 5, 5), groupbox_margin_top: int = 5, groupbox_padding_top: int = 5, widget_fixed_height: int | None = None, widget_padding: int = 5, row_fixed_height: int | None = None, reset_button_width: int = 60, button_height: int = 32)[source]
Configuration for parameter form layout spacing and margins.
- __init__(main_layout_spacing: int = 4, main_layout_margins: tuple = (4, 4, 4, 4), content_layout_spacing: int = 1, content_layout_margins: tuple = (1, 1, 1, 1), parameter_row_spacing: int = 2, parameter_row_margins: tuple = (1, 1, 1, 1), optional_layout_spacing: int = 2, optional_layout_margins: tuple = (2, 2, 1, 1), groupbox_spacing: int = 2, groupbox_margins: tuple = (5, 5, 5, 5), groupbox_margin_top: int = 5, groupbox_padding_top: int = 5, widget_fixed_height: int | None = None, widget_padding: int = 5, row_fixed_height: int | None = None, reset_button_width: int = 60, button_height: int = 32) None