Package autodesk_toxik :: Module relocationbrowser
[frames] | no frames]

Module relocationbrowser

Relocation browser module.

This module provides a relocation browser dialog. This is an ad hoc module used only for restoring archives. It is built on top of dialogs from the ui module.

Functions
RelocationDialog
createRelocationDialog(title, width, height, paths, closeButtons=["OK"])
Creates a relocation browser dialog.
Function Details

createRelocationDialog(title, width, height, paths, closeButtons=["OK"])

 

Creates a relocation browser dialog.

Parameters:
  • title (str) - Dialog title also used to name the browser widget within the dialog (which is then needed to get the relocation values back from the Dialog using either ui.Dialog.getValue or ui.Dialog.getValues).
  • width (int) - Dialog width.
  • height (int) - Dialog height.
  • paths (list of str) - List of paths to relocate.
  • closeButtons (list of str) - List of close button names. Optional; by default, the dialog is created with a single "OK" close button.
Returns: RelocationDialog
A new RelocationDialog object.