StageSaveDialog#

class omni.kit.window.file.StageSaveDialog(
on_save_fn: Callable[[], None] | None = None,
on_dont_save_fn: Callable[[], None] | None = None,
on_cancel_fn: Callable[[], None] | None = None,
enable_dont_save=False,
)#

Bases: object

Dialog class for saving stage.

Keyword Arguments:
  • on_save_fn (Callable) – function to call when clicking ‘Save Selected’ button.

  • on_dont_save_fn (Callable) – function to call when clicking ‘Don’t Save’ button.

  • on_cancel_fn (Callable) – function to call when clicking cancel button.

  • enable_dont_save (bool) – Disable ‘Don’t Save’ button.

Methods

__init__([on_save_fn, on_dont_save_fn, ...])

destroy()

Destructor.

is_visible()

show([layer_identifiers])

Show the dialog.

__init__(
on_save_fn: Callable[[], None] | None = None,
on_dont_save_fn: Callable[[], None] | None = None,
on_cancel_fn: Callable[[], None] | None = None,
enable_dont_save=False,
)#
destroy()#

Destructor.

is_visible()#
Returns:

Return True if dialog is visible.

show(layer_identifiers: List[str] = [])#

Show the dialog. :keyword layer_identifiers: list of layer identifier URLs. :kwtype layer_identifiers: List[str]