Skip to content

grablab.snapshot · declarations 001

Back to grablab.snapshot

EXTENSIONS module-attribute

EXTENSIONS

SVG_NS module-attribute

SVG_NS

UI_CONTENT module-attribute

UI_CONTENT

embed_svg

embed_svg(path: Path, record: dict) -> None

free_bundle

free_bundle(path: Path) -> Path

Choose a basename unused by any bundle member, including directories.

geometry

geometry(widget: Any) -> list[int]

native_list

native_list(obj: Any, name: str) -> list

Keep Python-owned widgets alive during PythonQt list conversion.

snapshot

snapshot(widget: Any, title: str, filename: str, max_widgets: int = 2000) -> dict

Capture visible QWidget descendants only; models and remote actions stay unknown.

ui_xml

ui_xml(record: dict) -> str

Write Designer XML with local geometry; full runtime details remain in JSON.

unique_id

unique_id(semantic: str, fallback: str, used: set) -> str

value

value(obj: Any, name: str, default: Any = None) -> Any

Read a deliberately allowlisted Qt property or zero-argument getter.

visible_to

visible_to(item: Any, root: Any) -> bool

Mirror QWidget.render children even when the owned root is hidden.

write_property

write_property(element: Any, name: str, val: Any) -> None