Radio Box widgetΒΆ
This is a multiple selection-level radio button collection, where each label can have a primary, secondary, etc. selection. Each selection level adheres to radio collection properties, where labels are mutually-exclusive. In addition, the default Delegate uses extra rules to make sure that:
Both primary and secondary highlights are not selected on the same item.
There is always a primary selection (but a secondary one is optional).
To use:
from omni.replicator.radio_box.widget import RadioBox, SimpleRadioBoxModel
str_list = ["RGB", "Depth", "Semantic Segmentation",
"Instance Segmentation", "LIDAR", "RADAR"]
model = SimpleRadioBoxModel(
[0, -1], # Primary and Secondary Selections
str_list
)
rb = RadioBox(model)
Cleanup:
rb.destroy()
rb = None