StageDelegate#

class omni.kit.widget.stage.StageDelegate(**kwargs)#

Bases: AbstractItemDelegate

Methods

__init__(self)

Constructs AbstractItemDelegate.

build_branch(model, item, column_id, level, ...)

Create a branch widget that opens or closes subtree

build_header(self[, column_id])

This pure abstract method must be reimplemented to generate custom widgets for the header table.

build_widget(model, item, column_id, level, ...)

Create a widget per item

destroy()

get_name_column_delegate()

on_mouse_pressed(button, stage, item, expanded)

Called when the user press the mouse button on the item

set_column_delegates(delegates)

Add custom columns

set_highlighting([enable, text])

Specify if the widgets should consider highlighting.

Attributes

collapse_fn

expand_fn

model

__init__(self: omni.ui._ui.AbstractItemDelegate) None#

Constructs AbstractItemDelegate.

`kwargsdict`

See below

### Keyword Arguments:

build_branch(model, item, column_id, level, expanded)#

Create a branch widget that opens or closes subtree

build_header(
self: omni.ui._ui.AbstractItemDelegate,
column_id: int = 0,
) None#

This pure abstract method must be reimplemented to generate custom widgets for the header table.

build_widget(model, item, column_id, level, expanded)#

Create a widget per item

on_mouse_pressed(
button,
stage: pxr.Usd.Stage,
item,
expanded,
)#

Called when the user press the mouse button on the item

set_column_delegates(delegates)#

Add custom columns

set_highlighting(enable: bool = None, text: str = None)#

Specify if the widgets should consider highlighting. Also set the text that should be highlighted in flat mode.