HotkeyColumnDelegate

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

Bases: StringColumnDelegate

A simple delegate to display a editable hotkey 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.

destroy()

on_hover_changed(item, hovered)

on_selection_changed(selections)

stop_key_capture()

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.