close

omni.kit.window.file.close(on_closed: Optional[Callable[[], None]] = None)

Check if current stage is dirty. If it’s dirty, it will ask if to save the file, then close stage.

Keyword Arguments

on_closed (Callable) – function to call after closing, Function Signature: on_closed() -> None