WindowsModel

class omni.kit.hotkeys.window.model.windows_model.WindowsModel(window_title: str)

Bases: AbstractItemModel

Model to represent all ui Windows and current selected in Hotkey.

Parameters

window_title – selected window title in Hotkey.

Methods

__init__(self)

Constructs AbstractItemModel.

get_item_children([item])

Returns all the children when the widget asks it.

get_item_value_model(self[, item, column_id])

Get the value model associated with this item.

get_item_value_model_count([item])

The number of columns

search(search_words)

Attributes

selected_windows

__init__(self: omni.ui._ui.AbstractItemModel) None

Constructs AbstractItemModel.

`kwargsdict`

See below

### Keyword Arguments:

get_item_children(item=None)

Returns all the children when the widget asks it.

get_item_value_model(self: omni.ui._ui.AbstractItemModel, item: omni.ui._ui.AbstractItem = None, column_id: int = 0) omni.ui._ui.AbstractValueModel

Get the value model associated with this item.

### Arguments:

`item :`

The item to request the value model from. If it’s null, the root value model will be returned.

`index :`

The column number to get the value model.

get_item_value_model_count(item=None)

The number of columns