WindowColumnDelegate

class omni.kit.hotkeys.window.column_delegate.window_column_delegate.WindowColumnDelegate(name: str, width: Optional[Length] = None)

Bases: StringColumnDelegate

A simple delegate to display/add action in column.

Kwargs:

name (str): Column name. width (ui.Length): Column width. Default None means ui.Fraction(1).

Methods

__init__(name[, width])

build_widget(model, item, level, expand)

Build a custom column widget in TreeView.

Attributes

__init__(name: str, width: Optional[Length] = None)
build_widget(model: HotkeysModel, item: AbstractActionItem, level: int, expand: bool)

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.