Skip to content

fontlabapp.qt.widgets · declarations 001

Back to fontlabapp.qt.widgets

create_dialog

create_dialog(main: Any, title: str, build: Callable | None) -> OwnedWidget

create_panel

create_panel(main: Any, title: str, build: Callable | None, area: str) -> OwnedWidget

create_widget

create_widget(parent: Any, build: Callable | None, *, floating: bool = False, show: bool = True) -> OwnedWidget

release_owned

release_owned(scope: Any, owned: Any, problems: list, closers: Sequence[Any] = ()) -> bool

Finish scope, close closers then owned; True only when all released.

Stops at the first refusal so the window stays usable: a falsy scope.finish(), a falsy owned.close() or a RuntimeError from any close, which is appended to problems. Other errors propagate. Closer results are ignored; None closers and a None owned are skipped. The caller keeps its handle and reports when this returns False.