pyqt_reactive.widgets.shared.tree_rebuild_coordinator

Coordinate safe tree rebuilds while preserving UI state.

Classes

TreeRebuildCoordinator(state_adapter)

Rebuild tree contents while preserving expansion and selection.

class pyqt_reactive.widgets.shared.tree_rebuild_coordinator.TreeRebuildCoordinator(state_adapter: TreeStateAdapter)[source]

Rebuild tree contents while preserving expansion and selection.

__init__(state_adapter: TreeStateAdapter) None[source]
classmethod default() TreeRebuildCoordinator[source]

Build the default dict-payload tree rebuild coordinator.

rebuild(tree: QTreeWidget, rebuild_fn: Callable[[], None]) None[source]