FileBrowserView

class omni.kit.widget.filebrowser.view.FileBrowserView(model: FileBrowserModel)

Bases: object

Base class for FileBrowserGridView` and :obj:`FileBrowserTreeView.

Parameters

model (FileBrowserModel) – the model to use.

Methods

__init__(model)

build_ui()

Build the UI.

destroy()

Destructor.

refresh_ui([item])

Update the UI.

select_and_center(item)

Select and center the view on the given item.

set_root(item)

Set the root item.

Attributes

model

Return the model of the view.

visible

Return visiblity of the view.

__init__(model: FileBrowserModel)
abstract build_ui()

Build the UI.

abstract destroy()

Destructor.

abstract refresh_ui(item: Optional[FileBrowserItem] = None)

Update the UI.

Parameters

item (FileBrowserItem) – The item to refresh.

abstract select_and_center(item: FileBrowserItem)

Select and center the view on the given item. :param item: the item to set the new selection to. :type item: FileBrowserItem

set_root(item: FileBrowserItem)

Set the root item.

property model

Return the model of the view.

property visible

Return visiblity of the view.