yasmin_editor.editor_gui.editor_action_state module

Qt-free editor action availability helpers.

yasmin_editor.editor_gui.editor_action_state.build_editor_action_enabled_map(*, read_only_mode: bool, has_selection: bool, has_state_selection: bool, clipboard_has_content: bool) dict[str, bool]

Return enabled states for the editor actions that depend on context.

yasmin_editor.editor_gui.editor_action_state.toolbar_menu_enabled(action_attributes: tuple[str, ...], enabled_map: dict[str, bool]) bool

Return whether one toolbar drop-down button should stay enabled.