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