SettingsComboValueModel

class omni.kit.widget.settings.settings_model.SettingsComboValueModel(label: str, value: Any)

Bases: AbstractValueModel

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

Methods

__init__(label, value)

SettingsComboValueModel init function.

get_setting_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__(label: str, value: Any)

SettingsComboValueModel init function.

Parameters
  • label – what appears in the UI widget

  • value – the value corresponding to that label

get_setting_value() Union[str, int, float]

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