class documentation
class RadioGroup(Choices): (source)
Known subclasses: fiftyone.operators.types.RadioView
Constructor: RadioGroup(**kwargs)
Represents a set of choices in a View
that are displayed as a
radio group.
Examples:
import fiftyone.operators.types as types choices = types.RadioGroup() choices.add_choice("cat", label="Cat", description="A cat") choices.add_choice("dog", label="Dog", description="A dog") inputs = types.Object() inputs.enum("animal", choices.values(), view=choices)
Parameters | |
orientation | the orientation of the radio group Can be "horizontal" or "vertical" |
label | a label for the radio group |
description | a description for the radio group |
caption | a caption for the radio group |
Method | __init__ |
Undocumented |
Method | to |
Undocumented |
Instance Variable | orientation |
Undocumented |
Inherited from Choices
:
Method | add |
Adds a choice value to this instance. |
Method | append |
Appends a Choice to the list of choices. |
Method | clone |
Undocumented |
Method | values |
Returns the choice values for this instance. |
Property | choices |
Undocumented |
Instance Variable | _choices |
Undocumented |
Inherited from View
(via Choices
):
Method | kwargs |
Undocumented |
Instance Variable | component |
Undocumented |
Instance Variable | components |
Undocumented |
Instance Variable | container |
Undocumented |
Instance Variable | placeholder |
Undocumented |
Instance Variable | read |
Undocumented |
Instance Variable | space |
Undocumented |
Instance Variable | _kwargs |
Undocumented |