API (python)

Module Summary:

omni.kit.widget.filebrowser

The basic UI widget and set of supporting classes for navigating the filesystem through a tree or grid view.

Module Details::

omni.kit.widget.filebrowser:

The basic UI widget and set of supporting classes for navigating the filesystem through a tree or grid view. The filesystem can either be from your local machine or the Omniverse server.

Example:

With just a few lines of code, you can create a powerful, flexible tree view widget that you
can embed into your view.

    filebrowser = FileBrowserWidget(
        "Omniverse",
        layout=SPLIT_PANES,
        mouse_pressed_fn=on_mouse_pressed,
        selection_changed_fn=on_selection_changed,
        drop_fn=drop_handler,
        filter_fn=item_filter_fn,
    )

Module Constants:

layout: {LAYOUT_SINGLE_PANE_SLIM, LAYOUT_SINGLE_PANE_WIDE, LAYOUT_SPLIT_PANES, LAYOUT_DEFAULT}