WidgetComboValueModel#

class omni.kit.window.inspector.property.widget_model.WidgetComboValueModel(key, value)#

Bases: AbstractValueModel

Model to store a pair (label, value of arbitrary type) for use in a ComboBox

Methods

__init__(key, value)

get_style_value()

we call this to get the value of the combo box item

get_value_as_string()

this is called to get the label of the combo box item

Attributes

__init__(key, value)#
Parameters:

value – the instance of the Style value

get_style_value() int#

we call this to get the value of the combo box item

get_value_as_string() str#

this is called to get the label of the combo box item