Skip to content

fontlabapp.core.signals.connections · declarations 001

Back to fontlabapp.core.signals.connections

Connections module-attribute

Connections

disconnect_connections

disconnect_connections(connections: Connections, report: Callable[[Exception], Any]) -> None

Pop in reverse order; report ordinary failures and continue draining.

Only the specified slots are disconnected. A failed pair is already popped, matching the compatibility callers' existing behavior. A report failure or BaseException propagates immediately, leaving unattempted pairs available. A report that adds pairs makes them part of the same drain; callers must not continually reconnect while closing. Repeated teardown of an empty list is harmless. Widget ownership and callback guards remain the caller's policy.

track_connection

track_connection(connections: Connections, signal: Any, slot: Callable[..., Any]) -> None

Connect first, then retain the exact pair; preserve duplicates and order.

Connection errors propagate without recording a pair. Binding-specific return values remain ignored, as in the original compatibility adapters.