Bases: CommonParameterWidgetConfig
Source code in pyguiadapter\widgets\extend\objectseditor.py
| @dataclasses.dataclass(frozen=True)
class SchemaObjectsEditorConfig(CommonParameterWidgetConfig):
default_value: Optional[List[Dict[str, Any]]] = None
schema: Dict[str, ValueType] = None
ignore_unknown_keys: bool = False
fill_missing_keys: bool = False
display_text: str = "Edit - {object_count} objects in list"
window_title: str = "Objects Editor"
window_size: Tuple[int, int] = (800, 600)
center_container_title: str = ""
item_editor_title: str = ""
item_editor_size: Tuple[int, int] = (500, 600)
item_editor_center_container_title: str = ""
wrap_movement: bool = False
add_button_text: str = "Add"
edit_button_text: str = "Edit"
remove_button_text: str = "Remove"
clear_button_text: str = "Clear"
move_up_button_text: str = "Move Up"
move_down_button_text: str = "Move Down"
stretch_last_section: bool = True
no_selection_warning_message: Optional[str] = NO_OBJECT_SELECTED_WARNING_MESSAGE
no_items_warning_message: Optional[str] = NO_OBJECT_ADDED_WARNING_MESSAGE
remove_confirm_message: Optional[str] = REMOVE_CONFIRM_MESSAGE
clear_confirm_message: Optional[str] = CLEAR_CONFIRM_MESSAGE
multiple_selection_warning_message: Optional[str] = MULTIPLE_OBJECTS_WARNING_MESSAGE
double_click_to_edit: bool = False
resize_rows_to_contents: bool = True
alternating_row_colors: bool = False
show_horizontal_header: bool = True
show_vertical_header: bool = True
show_grid: bool = True
continuous_selection: bool = True
item_text_alignment: Union[int, Qt.AlignmentFlag, None] = None
item_data_as_tooltip: bool = False
item_data_as_status_tip: bool = False
column_widths: Optional[Dict[int, int]] = None
horizontal_resize_modes: Union[
Dict[int, QHeaderView.ResizeMode], QHeaderView.ResizeMode, None
] = None
vertical_resize_modes: Union[
Dict[int, QHeaderView.ResizeMode], QHeaderView.ResizeMode, None
] = None
@classmethod
def target_widget_class(cls) -> Type["SchemaObjectsEditor"]:
return SchemaObjectsEditor
|