Segment
A segment for a SegmentedButton.
Inherits: Control
Properties
Properties
iconclass-attributeinstance-attribute
icon: Optional[IconDataOrControl] = NoneThe icon to be displayed in the segment.
Typically an Icon.
Raises:
- ValueError - If neither it nor label is set and visible.
labelclass-attributeinstance-attribute
label: Optional[StrOrControl] = NoneThe label (usually a Text) to be displayed in the segment.
Raises:
- ValueError - If neither it nor icon is set and visible.