Segment
Inherits: Control
A segment for a SegmentedButton.
Properties
-
icon(Optional[IconDataOrControl]) –The icon (typically an
Icon) to be displayed in the segment. -
label(Optional[StrOrControl]) –The label (usually a
Text) to be displayed in the segment. -
value(str) –Used to identify the
Segment.
Properties#
icon
class-attribute
instance-attribute
#
icon: Optional[IconDataOrControl] = None
The icon (typically an Icon) to be displayed in the segment.
label
class-attribute
instance-attribute
#
label: Optional[StrOrControl] = None
The label (usually a Text) to be displayed in the segment.
Raises: