AbstractColumnDelegate#

class omni.kit.actions.window.AbstractColumnDelegate(
name: str,
width: ~omni.ui._ui.Length = 1.000000fr,
)#

Bases: object

Represent a column delegate in actions Treeview.

Parameters:
  • name (str) – Column name.

  • width (ui.Length) – Column width. Default ui.Fraction(1).

Methods

__init__(name[, width])

build_header()

Build header widget in TreeView, default ui.Label(name)

build_widget(model, item, level, expand)

Build a custom column widget in TreeView.

execute(item)

Execute model item.

Attributes

width

Column width.

__init__(
name: str,
width: ~omni.ui._ui.Length = 1.000000fr,
)#
build_header()#

Build header widget in TreeView, default ui.Label(name)

abstract build_widget(
model: AbstractItemModel,
item: AbstractItem,
level: int,
expand: bool,
) Widget#

Build a custom column widget in TreeView. Return created widget.

Parameters:
  • model (ui.AbstractItemModel) – Actions model.

  • item (ui.AbstractItem) – Item to show.

  • level (int) – Level in treeview.

  • expand (bool) – Iten expand or not.

execute(item: AbstractItem)#

Execute model item. :param item: Item to show. :type item: ui.AbstractItem

property width: Length#

Column width.